Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Call macro after "macros are enabled"

Hi there,

I am quite a noob in programing VBA so this question might seem really
trivial to some of you, but unfortunalty it is not for me ;)

I want to start a macro, after the user has accepted the default security
message, excel is showing. Disabling this message is not possible, because
the sheet has to work on "any" computer in the company.

So, how is it possible to start a macro, right after the user has enabled
them?

Thanks in advance and sorry for my bad english.

Great regards,
fish
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,480
Default Call macro after "macros are enabled"

Hi

Either place the code in ThisWorkbook as a Workbook_Open event
Private Sub Workbook_Open()

.... your code

End Sub

or in a regular modular with a name of

Sub Auto_Open()

.. your code

End sub

--
Regards
Roger Govier

"fish" wrote in message
...
Hi there,

I am quite a noob in programing VBA so this question might seem really
trivial to some of you, but unfortunalty it is not for me ;)

I want to start a macro, after the user has accepted the default security
message, excel is showing. Disabling this message is not possible, because
the sheet has to work on "any" computer in the company.

So, how is it possible to start a macro, right after the user has enabled
them?

Thanks in advance and sorry for my bad english.

Great regards,
fish

__________ Information from ESET Smart Security, version of virus
signature database 4846 (20100208) __________

The message was checked by ESET Smart Security.

http://www.eset.com




__________ Information from ESET Smart Security, version of virus signature database 4846 (20100208) __________

The message was checked by ESET Smart Security.

http://www.eset.com



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
Pivot Table Creation Macro fails with Error #5 "Invalid procedure call or argument" [email protected] Excel Programming 1 July 10th 07 08:01 PM
"Toggle total row" button not enabled in Excel 2003 dominic_howden Excel Discussion (Misc queries) 0 April 12th 06 09:21 AM
Call a sub statement in "Personal Macro Workbook" from "ThisWorkbo QC Coug Excel Programming 1 August 26th 05 07:09 PM
CommandBars("Worksheet Menu Bar").Controls("Tools").Enabled = Fals Arturo Excel Programming 3 May 26th 05 05:44 PM
Can ActiveX controls be "disabled" and "enabled"? William DeLeo Excel Programming 1 May 7th 04 09:10 PM


All times are GMT +1. The time now is 07:13 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"