Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Automatically run macro when userform is opened

basically


sub userform_open()

call macro1

end sub


this is not correct but demonstrates what i am attempting to accomplish
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Automatically run macro when userform is opened

Use the Initialize event...

Private Sub UserForm_Initialize()
Call Macro1
End Sub

--
Rick (MVP - Excel)


"jason" wrote in message
...
basically


sub userform_open()

call macro1

end sub


this is not correct but demonstrates what i am attempting to accomplish


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Automatically run macro when userform is opened

are you trying to trap the userform opening or do you want the code run when
the userform opens?
For the latter you could use the form's initialise event

there's nothing else that I'm aware of, though I susoect that there's sopme
API that might work.

"jason" wrote:

basically


sub userform_open()

call macro1

end sub


this is not correct but demonstrates what i am attempting to accomplish

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
How to run a macro automatically when the file is opened? LunaMoon Excel Discussion (Misc queries) 1 April 24th 10 01:01 AM
a macro that runs automatically when a workbook is opened david netser Excel Programming 2 August 18th 09 11:22 AM
Have macro run automatically as soon as excel is opened. Dtown Dawg Excel Programming 2 May 30th 06 11:21 PM
Can macro/userform run depending on HOW workbook is opened? grasping@straws Excel Discussion (Misc queries) 1 December 28th 04 03:19 PM
Automatically launch a macro when a fil is opened One-Leg Excel Discussion (Misc queries) 1 December 15th 04 08:12 PM


All times are GMT +1. The time now is 03:44 AM.

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"