M
marys
I am copying code that someone else wrote for another file
that accomplishes what I would like to do which is:
Copying a range from one workbook with one worksheet to
another workbook that has multiple worksheets with
different names but the pasting should be done on the
worksheet that is active.
The code I'm copying pasted the data to the same worksheet
each time so it refers to the name of the worksheet but I
need it to refer to the "active" worksheet whatever it is
named.
Here is the code line that needs to be changed:
Application.Goto Reference:=Targetbook.Worksheets
("nameofsheet").Range("C1")
Also question on the range reference ("C1") what is that
referring to exactly?
Thanks for help.
that accomplishes what I would like to do which is:
Copying a range from one workbook with one worksheet to
another workbook that has multiple worksheets with
different names but the pasting should be done on the
worksheet that is active.
The code I'm copying pasted the data to the same worksheet
each time so it refers to the name of the worksheet but I
need it to refer to the "active" worksheet whatever it is
named.
Here is the code line that needs to be changed:
Application.Goto Reference:=Targetbook.Worksheets
("nameofsheet").Range("C1")
Also question on the range reference ("C1") what is that
referring to exactly?
Thanks for help.