Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 18th, 2008, 05:19 AM
Registered User
 
Join Date: Jan 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Open Excel to display created forms

If someone could help on below issue I believe it could benifit all beginners in VBA programming ....after creating a form with some controls on the it, how to make this form open next time we open the created form in the Excel 2003 file...

I created the form Excel 2003 and saved it, and closed excel... when I reopened the file ...the spread sheet is opening and not the form I created...I want excel to open the form so user's can access information through userfriendly interface....Grateful if someone could help....Many Thanks...
 
Old January 18th, 2008, 10:17 PM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

You can call the Show method of the form in Workbook_Open event

Code:
Private Sub Workbook_Open()

UserForm1.Show

End Sub
this event will be fired whenever the Workbook is opened. Hope this is your requirement!

Cheers
Shasur

http://www.dotnetdud.blogspot.com

VBA Tips & Tricks (http://www.vbadud.blogspot.com)
 
Old January 19th, 2008, 07:42 AM
Registered User
 
Join Date: Jan 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you I tried working great....





Similar Threads
Thread Thread Starter Forum Replies Last Post
Why Created 2 Excel file? cyclone9 SQL Server 2000 0 September 8th, 2008 04:20 AM
Display file Access and Created date scoobie Java Basics 1 March 16th, 2007 06:53 AM
Save Dynamically created forms DaDeViL Access VBA 2 August 17th, 2005 08:29 AM
List of open forms madhukp VB How-To 2 September 8th, 2004 11:27 PM
Excel Workbook created from Access VBA clueless_may Access VBA 0 June 8th, 2004 09:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.