Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default Inserting Form form Visual Basic...

I am quite the begginer here. After I create a form in the Excel's Visual
Basic, how do I insert that form into a worksheet, or have it auto-execute
when workbook is opened.
Thank you,
Thomas
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Inserting Form form Visual Basic...

Hi Thomas,

In the ThisWorkbook module, try:

Sub Workbook_Open()

UserForm1.Show

End Sub

Where Userform1 is the name of your userform.


---
Regards,
Norman



"thomas" wrote in message
...
I am quite the begginer here. After I create a form in the Excel's Visual
Basic, how do I insert that form into a worksheet, or have it auto-execute
when workbook is opened.
Thank you,
Thomas



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Inserting Form form Visual Basic...

Use the workbook_Open event to show the form

Private Sub Workbook_Open()
Userform1.Show
End Sub

this would go in the ThisWorkbook Module

See Chip Pearson's page on events

http://www.cpearson.com/excel/events.htm

--
Regards,
Tom Ogilvy

"thomas" wrote in message
...
I am quite the begginer here. After I create a form in the Excel's Visual
Basic, how do I insert that form into a worksheet, or have it auto-execute
when workbook is opened.
Thank you,
Thomas



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default Inserting Form form Visual Basic...

Thank you

"Norman Jones" wrote:

Hi Thomas,

In the ThisWorkbook module, try:

Sub Workbook_Open()

UserForm1.Show

End Sub

Where Userform1 is the name of your userform.


---
Regards,
Norman



"thomas" wrote in message
...
I am quite the begginer here. After I create a form in the Excel's Visual
Basic, how do I insert that form into a worksheet, or have it auto-execute
when workbook is opened.
Thank you,
Thomas




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 help Excel/word form filling in laandmc Excel Discussion (Misc queries) 1 September 25th 08 01:12 PM
Visual basic, form does not show date correctly.... Haris Excel Worksheet Functions 6 November 7th 07 02:42 PM
visual basic user form date format dd/mm/yy not mm/dd/yy DarrenO Excel Discussion (Misc queries) 1 March 28th 07 01:56 AM
Make a visual basic form fill a page HFB Excel Programming 2 January 23rd 05 09:15 PM
Using Visual Basic form to enter data Stephen Carpineta \(Matco Electric\) Excel Programming 1 September 29th 03 08:20 PM


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