Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Insert forms created in excel's visual basic into a worksheet or at startup

I have created a form in excel's visual basic.
(I.E. Open Excel, Tool, Macro, Visual Basic Editor)

I have included a picture of where the form is in the Project window i
the left side. The form works great. It even interacts with the exce
file. However, the only way for me to open the form is to enter int
the Visual Basic Editor, find the form I created, then click the Pla
button on the tool bar. Is there anyway to access this form directl
from Excel. Preferably, I would like for it to start only for thi
excel file and I want the form to have a link on the tool bar, so whe
pressed the form starts.

Is there a tutorial on this. I dont think I have created a module. Bu
not sure. Please view the gif file i uploaded for clarity.

The gif. file will show you where the form is that i created.:confused

Attachment filename: forms_insertion_help.gif
Download attachment: http://www.excelforum.com/attachment.php?postid=45405
--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 253
Default Insert forms created in excel's visual basic into a worksheet or at startup

Hi,
Go back in the VBE
Menu Insert - Module

In that module, create a sub (type):

sub ShowMyForm
myFormName.Show 'myFormName = ...? "UserForm1" if you did not change it
end sub

regards
JY
"web_surfer " wrote in message
...
I have created a form in excel's visual basic.
(I.E. Open Excel, Tool, Macro, Visual Basic Editor)

I have included a picture of where the form is in the Project window in
the left side. The form works great. It even interacts with the excel
file. However, the only way for me to open the form is to enter into
the Visual Basic Editor, find the form I created, then click the Play
button on the tool bar. Is there anyway to access this form directly
from Excel. Preferably, I would like for it to start only for this
excel file and I want the form to have a link on the tool bar, so when
pressed the form starts.

Is there a tutorial on this. I dont think I have created a module. But
not sure. Please view the gif file i uploaded for clarity.

The gif. file will show you where the form is that i created.

Attachment filename: forms_insertion_help.gif
Download attachment:

http://www.excelforum.com/attachment.php?postid=454056
---
Message posted from http://www.ExcelForum.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
Visual Basic insert formula Pavlov Bell Excel Discussion (Misc queries) 2 October 25th 10 06:30 PM
Worksheet naming using visual basic O'C Excel Worksheet Functions 2 October 31st 06 05:30 PM
Visual Basic forms tamato43 Excel Discussion (Misc queries) 2 March 29th 05 07:43 PM
Saving Workbook in Visual Basic Hides the Worksheet, Why bmartin52 Excel Programming 0 January 10th 04 06:33 PM


All times are GMT +1. The time now is 10:14 PM.

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"