Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The following code runs well if inventory xls is not open
(...) Application.DisplayAlerts=True Columns("A:C").Copy Workbooks.Open ("c:\documents and settings\antonio\my documents\inventory.xls") Worksheets("rent").Activate Columns("D:F").Select ActiveSheet.Paste However, if inventory.xls is already open, when I run the above I get error at the last line: "Paste failed" The strange thing is that when running line 3 it does not show the dialog that inventory.xls is already open. It seems that it has something to do with reopening inventory.xls but I cannot figure out where the problem is. If I have inventory.xls open and I do not reopen it with VBA it works fine. Thanks, Antonio |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
HOW TO 'BLINK' A FIGURE INSTEAD OFF BOLDING THE FIGURE | Excel Worksheet Functions | |||
wierd error I cannot figure out | Excel Programming | |||
Help, I can't figure this out | Excel Programming | |||
error 400, i cant figure this out.. | Excel Programming | |||
Some Error that I can't figure out. | Excel Discussion (Misc queries) |