Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 1st, 2005, 03:49 PM
theguz theguz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 54 theguz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 40 m 34 sec
Reputation Power: 4
Question Open forms in Excel?

I have created a user form called UserForm1 because I am so creative (JK). Anyways, I want to open by running a macro in Excel 2000. Here is my Macro:

Sub OpenUserForm1()
'This macro opens the user form
UserForm1.Show

End Sub
However, I get the error, "Object required" . The funny thing is this is the exact thing both the help pages said to do and Microsofts website. I really must have missed something. I have tried MANY different things. Any help would be awesome.
Thanks,

theguz

Reply With Quote
  #2  
Old July 5th, 2005, 09:21 AM
theguz theguz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 54 theguz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 40 m 34 sec
Reputation Power: 4
Never mind I figured it out. In case anyone has this problem in the future here is what you do.

1. In the initalize event you must add
Load Userformname
UserFormName.Show

2. Then create the macro that says:
Userformname.Show

3. Where there is bold put in your form name.

I am not really sure why this is. If anyone knows I would love to hear the explanation

theguz

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Excel VBA Question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT