|
-
Jan 9th, 2006, 12:09 PM
#1
Thread Starter
New Member
Deploying VBA program
I've written a VBA program that will be used by about a dozen people. Obviously, it would be best if they didn't have to go into the Visual Basic Editor in order to execute the program. Is there a way to just have a regular macro call the form or something? I've searched the web, these forums, and Excel help, but haven't found anything.
Thanks.
-
Jan 9th, 2006, 12:34 PM
#2
Addicted Member
Re: Deploying VBA program
to execute the program on opening, put this code in ThisWorkbook:
VB Code:
Sub Workbook_Open()
Call Macro1 'Can be UserForm1.Show or anything else you want to perform on opening
End Sub
If you want to execute your macro without using VB Editor
In Excel
Tool
Tool->Macro
Tool->Macro->Macro
or Alt F8
a new window will open with all macro available
Last edited by billhuard; Jan 9th, 2006 at 01:04 PM.
-
Jan 9th, 2006, 12:49 PM
#3
Re: Deploying VBA program
What type of Office Application is this code written for? If it is Access you can use the Tools ===> Start Up to load a particular form when the db is opened.
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
-
Jan 9th, 2006, 03:37 PM
#4
Thread Starter
New Member
Re: Deploying VBA program
Thank you. That subroutine does the job.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|