Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How to disable autoopen() programmatically

Hi All,

sorry for my poor english, but i hope you understand me.

I have an Excel-File, that has a autopen-Macro, which shows a Fom, when
loading the Excel-File.

Now i want to read some data from the worksheet by vb_script, vb, .net
(programming language doesen't matter). But now, the auto_open-Makro is
annoying, because it pop-ups on the screen. So how can i disable this
macro by program (not in Excel himself, that would be easy!) ?

Thanks in advance

Karl
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default How to disable autoopen() programmatically

Hi Karl

Sub Auto_open()
MsgBox "Hi"
End Sub

Must be in a normal module
If you use a Auto_open macro then this wil not run if you open the file with a macro

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Karl Steinam" wrote in message ...
Hi All,

sorry for my poor english, but i hope you understand me.

I have an Excel-File, that has a autopen-Macro, which shows a Fom, when loading the Excel-File.

Now i want to read some data from the worksheet by vb_script, vb, .net (programming language doesen't matter). But now, the
auto_open-Makro is annoying, because it pop-ups on the screen. So how can i disable this macro by program (not in Excel himself,
that would be easy!) ?

Thanks in advance

Karl



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How to disable autoopen() programmatically

Ron de Bruin wrote:

Hi Karl

Sub Auto_open()
MsgBox "Hi"
End Sub

Must be in a normal module
If you use a Auto_open macro then this wil not run if you open the file with a macro

Thanks for the quick answer

KS
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
Disable macros on a programmatically opening .xls file Matt[_2_] Excel Discussion (Misc queries) 2 May 25th 07 04:45 AM
Does anyone know how to programmatically disable Application.xlcut Fonda Excel Programming 1 June 30th 04 01:58 AM
'Yes' 'No' button on autoopen macro Larry Excel Programming 2 May 21st 04 09:59 PM
Disable AutoOpen macro's Michael Beckinsale Excel Programming 1 October 16th 03 01:48 PM
Can i set a reference programmatically? Tom Ogilvy Excel Programming 1 August 19th 03 04:24 PM


All times are GMT +1. The time now is 07:56 AM.

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

About Us

"It's about Microsoft Excel"