VBA EXCEL- copy and paste different documents

Closed
abcde - Jun 24, 2010 at 09:51 PM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Jun 25, 2010 at 04:11 PM
Hello, I need ugent help in this task!
The only thing i have to do now is to copy and paste range of texts from one document to another by using MACRO and i will assign it to a button later.
HOWEVER, the copy and paste function seems not working!
It becomes:

Sub Macro2()
'
' Keyboard Shortcut: Ctrl+d
'
Range("A4").Select
ActiveSheet.Paste
End Sub

WITHOUT linking to another document!!

are there any specific scripts that can allow me to do the copy and paste from one document to another?

Thanks!
Related:

1 response

rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 766
Jun 25, 2010 at 04:11 PM
Where is the copy ?

your code is

Range("A4").Select ' select cell A4
ActiveSheet.Paste ' paste whatever was copied before


Seems to be missing a lot
0