How to disable autoopen() programmatically

  • Thread starter Thread starter Karl Steinam
  • Start date Start date
K

Karl Steinam

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
 
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
 
Ron said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top