Dear All,
I am trying to have a simple copy paste code, using the line below while wbc & wbs different workbooks and Sheet1 is the code name of the target worksheet;
This above line is not working, however the one below, which I use the names as "Worksheets("Status")" is working perfectly fine.
Do you know a way to use code names instead of actual names? The worksheet names would be dynamic, so I need code names.
Thanks in advance
Cheers
Igal
I am trying to have a simple copy paste code, using the line below while wbc & wbs different workbooks and Sheet1 is the code name of the target worksheet;
Code:
wbc.Sheet1.Range("d4").Value = wbs.Sheet1.Range("d4").Value
This above line is not working, however the one below, which I use the names as "Worksheets("Status")" is working perfectly fine.
Code:
wbc.Worksheets("Status").Range("d4").Value = wbs.Worksheets("Status").Range("d4").Value
Do you know a way to use code names instead of actual names? The worksheet names would be dynamic, so I need code names.
Thanks in advance
Cheers
Igal