Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Switching Workbooks in vbscript
Hello all and thanks for any help that you can provide. I am trying to
switch between two open workbooks in excel using vbscript. I am able to open one workbook and create another just fine, but the act of switching workbooks to copy data from one to the other is kinda stumping me. I just know it is something fairly simple, but I cannot seem to remember the command. I tried: objxl.Workbooks("Book1").Select but received an error. Any help at all on this would be greatly appreciated. Thanks, Joe |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Switching Workbooks in vbscript
Hi,
Try this: Selection.Copy Windows("main.xls").Activate Sheets("Sheet1").Range("A1").Select Selection.Paste Kate -----Original Message----- Hello all and thanks for any help that you can provide. I am trying to switch between two open workbooks in excel using vbscript. I am able to open one workbook and create another just fine, but the act of switching workbooks to copy data from one to the other is kinda stumping me. I just know it is something fairly simple, but I cannot seem to remember the command. I tried: objxl.Workbooks("Book1").Select but received an error. Any help at all on this would be greatly appreciated. Thanks, Joe . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Run VBScript from Excel | Excel Discussion (Misc queries) | |||
Switching between Workbooks | Excel Discussion (Misc queries) | |||
Switching between workbooks | Excel Discussion (Misc queries) | |||
Pastespecial via vbscript not working | Excel Programming | |||
How to do selection.subtotal in VBScript/ASP ? | Excel Programming |