Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all,
I am bit confused. I have a workbook with a VBA program called prog.xls that I try to do the following with open a file file.xls using workbooks.open filename:=file.xls and then open file1.xls copy a chunk of data activate file.xls using workbooks(file.xls).activate create a new sheet with name file1 and then paste the chunk of data there using range("A1").select and activesheet.paste. But it doesn't do it for me, instead it creates the new sheet file1 in prog.xls and puts the chunk of data there. How do I correctly refer to the workbook file.xls and put the data in that book instead of the prog.xls book? Thanks for any help. Regards, Milos. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Regular Workbooks vs. Binary Workbooks | Excel Discussion (Misc queries) | |||
Updating Workbooks from multiple links Workbooks | Excel Worksheet Functions | |||
Copy/ move selected data from workbooks to seperate worksheets or workbooks | Excel Worksheet Functions | |||
Display 2 formulas from source workbooks to destination workbooks | Excel Discussion (Misc queries) | |||
suddenly my excel workbooks are "shared workbooks" | Excel Discussion (Misc queries) |