Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default with a macro open a workbook without the Auto_Open running

I wish to open a workbook that has Auto_Open installed. I merely want to
extract information from a specific cell. My proglem is that the workbook
when opend will run Auto Open. Is there a way to prevent the Auto_Open macro
from execuiting?
I appreciate the help.

Olie
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default with a macro open a workbook without the Auto_Open running

Olie,

Hold down the SHIFT key when you open the file and the code won't run.


--
Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)



"OlieH" wrote in message
...
I wish to open a workbook that has Auto_Open installed. I merely want to
extract information from a specific cell. My proglem is that the workbook
when opend will run Auto Open. Is there a way to prevent the Auto_Open
macro
from execuiting?
I appreciate the help.

Olie


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default with a macro open a workbook without the Auto_Open running

Chip thanks for the reply. I am opening the workbook from within a macro in
a different workbook. I did get the workbook to open without executing the
Auto_Open. Now my problem is that in the "opened workbook" I have a
before_close event that is triggered, when I tried to close the 2nd workbook.
Any way to prevent the before_close macro from running from within the first
opened workbook?

"Chip Pearson" wrote:

Olie,

Hold down the SHIFT key when you open the file and the code won't run.


--
Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)



"OlieH" wrote in message
...
I wish to open a workbook that has Auto_Open installed. I merely want to
extract information from a specific cell. My proglem is that the workbook
when opend will run Auto Open. Is there a way to prevent the Auto_Open
macro
from execuiting?
I appreciate the help.

Olie


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default with a macro open a workbook without the Auto_Open running

If you are opening the file via VBA code, the Auto_Open macro won't run, but
the Workbook_Open event will run. You can disable all events (such as
BeforeClose) with code like

Application.EnableEvents = False
' do something
Application.EnableEvents = True


--
Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)




"OlieH" wrote in message
...
Chip thanks for the reply. I am opening the workbook from within a macro
in
a different workbook. I did get the workbook to open without executing
the
Auto_Open. Now my problem is that in the "opened workbook" I have a
before_close event that is triggered, when I tried to close the 2nd
workbook.
Any way to prevent the before_close macro from running from within the
first
opened workbook?

"Chip Pearson" wrote:

Olie,

Hold down the SHIFT key when you open the file and the code won't run.


--
Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)



"OlieH" wrote in message
...
I wish to open a workbook that has Auto_Open installed. I merely want
to
extract information from a specific cell. My proglem is that the
workbook
when opend will run Auto Open. Is there a way to prevent the Auto_Open
macro
from execuiting?
I appreciate the help.

Olie



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using VBA to open Excel , Auto_Open Procedure not running moonhk Excel Programming 2 November 5th 07 06:30 AM
Running macro on open of workbook? Lime Excel Programming 5 June 14th 06 06:41 PM
macro not running on workbook open Nick Smith[_2_] Excel Programming 4 May 11th 06 10:24 AM
Running a macro in a open as read-o Workbook TBarreiro Excel Programming 0 September 2nd 05 04:02 PM
Running a macro in a open as read-o Workbook TBarreiro Excel Programming 0 September 2nd 05 03:55 PM


All times are GMT +1. The time now is 06:06 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"