Yeoman.jeremy
Board Regular
- Joined
- Apr 4, 2011
- Messages
- 90
Hi there,
a part of my workbook requires that i copy some data from one workbook to another, but i'm not sure how to copy more than one selection at once.
I've read something somewhere once about a clipboard, where you can copy many selections and paste them all seperately, but i wouldn't know how to use this, let alone in VBA.
At the moment my coding is
Which basically copies from ONE cell in a workbook, and pastes to the same ONE cell in another.
How can i copy more than one cell at a time? e.g b2, c2, e4 ,g5 etc?
I know that i could do them all seperately, but i don't want the screen to keep tabbing between the workbooks and give my office ladies epilepsy from the excessive tabbing
help would be much appreciated
a part of my workbook requires that i copy some data from one workbook to another, but i'm not sure how to copy more than one selection at once.
I've read something somewhere once about a clipboard, where you can copy many selections and paste them all seperately, but i wouldn't know how to use this, let alone in VBA.
At the moment my coding is
Code:
Sub DuplicateComplex_mcr()
Dim wbk1 As Workbook
Dim wbk2 As Workbook
strFirstFile = "c:\Documents and settings\Jan\Desktop\On The Job Sheet"
Set wbk1 = ThisWorkbook
Set wbk2 = Workbooks.Open(strFirstFile)
wbk1.Sheets("Job Sheet").Range("B2").Copy
wbk2.Sheets("Job Sheet").Range("B2").PasteSpecial xlPasteValues
End Sub
Which basically copies from ONE cell in a workbook, and pastes to the same ONE cell in another.
How can i copy more than one cell at a time? e.g b2, c2, e4 ,g5 etc?
I know that i could do them all seperately, but i don't want the screen to keep tabbing between the workbooks and give my office ladies epilepsy from the excessive tabbing
help would be much appreciated
Last edited by a moderator: