Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all,
I'm trying to have a macro copy/pastespecial a cell from another workbook. Simple enough but I have a userform that shows when the workbook opens so I have to close the form to continue the macro. I "thought" application.enableevents=false would stop this userform from opening but obviously I'm wrong. Any help is always appreciated. Workbooks.Open FileName:="C:\Report1.xls" Application.EnableEvents = False Sheets("A").Select Range("D5").Select Selection.Copy yaddayaddayadda -- jeffP |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Jeff,
Put EnableEvents = False BEFORE opening the workbook. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "jeffP" wrote in message ... Hi all, I'm trying to have a macro copy/pastespecial a cell from another workbook. Simple enough but I have a userform that shows when the workbook opens so I have to close the form to continue the macro. I "thought" application.enableevents=false would stop this userform from opening but obviously I'm wrong. Any help is always appreciated. Workbooks.Open FileName:="C:\Report1.xls" Application.EnableEvents = False Sheets("A").Select Range("D5").Select Selection.Copy yaddayaddayadda -- jeffP |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Application.EnableEvents | Excel Worksheet Functions | |||
application.EnableEvents | Excel Discussion (Misc queries) | |||
Application.EnableEvents | Excel Programming | |||
Stopping the use of enableevents | Excel Programming | |||
EnableEvents and DisplayAlerts problems | Excel Programming |