Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Post your code...
-- HTH... Jim Thomlinson "David P." wrote: I have a macro that opens another workbook but it appears that the macro fails to finish because it's almost like it's not waiting for it to load. Essentially this is what I'm doing: Workbook A is open Macro to open Workbook B (this takes a second to load therefore cancelling the rest of the macro) Copy selected text from B Close Workbook B Paste info on Workbook A Your help appreciated. -- David P. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Now I'm really going to confuse you. I'm assuming the macro stops running at
Workbooks.Open Filename:="C:\Windows Template.xls" . Sheets("P").Select Range("I13").Select Workbooks.Open Filename:="C:\Windows Template.xls" Sheets("2").Select Selection.Copy ActiveWindow.WindowState = xlMinimized ActiveWindow.WindowState = xlMaximized ActiveSheet.Paste ActiveWindow.WindowState = xlMinimized Windows("Windows Template.xls").Activate ActiveWindow.Close -- David P. "Jim Thomlinson" wrote: Post your code... -- HTH... Jim Thomlinson "David P." wrote: I have a macro that opens another workbook but it appears that the macro fails to finish because it's almost like it's not waiting for it to load. Essentially this is what I'm doing: Workbook A is open Macro to open Workbook B (this takes a second to load therefore cancelling the rest of the macro) Copy selected text from B Close Workbook B Paste info on Workbook A Your help appreciated. -- David P. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Shared Workbook not loading | Excel Discussion (Misc queries) | |||
personal macro workbook just stopped loading | Excel Discussion (Misc queries) | |||
How to stop Excel remembering/loading macro from previously opened Workbook | Excel Discussion (Misc queries) | |||
Image not loading when opening Workbook | Excel Discussion (Misc queries) | |||
Disable VBA code execution when loading a workbook | Excel Discussion (Misc queries) |