Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Showing a userform

I have a userform defined. I have a bottom which makes the userform visible.
According to the book "Excel VBA Macro Programming" I should be able to make
it visible with this statement:

userform1.Show

But that didn't work. I had to change the statement to:

VBA.UserForms.Add("userform1").Show

Is that expected?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Showing a userform

No, definitely not expected. Check your references: is the Microsoft Forms
Object Model checked? A userform is from MSForms, so I suspect the reason it
is not recognizing the UserForm as an object is that there is something wrong
with the MSForms library reference.
--
- K Dales


"Kent McPherson" wrote:

I have a userform defined. I have a bottom which makes the userform visible.
According to the book "Excel VBA Macro Programming" I should be able to make
it visible with this statement:

userform1.Show

But that didn't work. I had to change the statement to:

VBA.UserForms.Add("userform1").Show

Is that expected?



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
Showing image from internet on userform Jens Meier Excel Programming 2 July 31st 05 11:41 PM
Normal Use of a Worksheet With a UserForm Showing? jennie Excel Programming 2 September 20th 04 12:59 PM
Normal Use of a Worksheet With a UserForm Showing? jennie Excel Programming 1 September 20th 04 11:33 AM
Excel 2003 - Showing Userform Steve Jones Excel Programming 8 July 30th 04 07:58 AM
REPOST: showing a userform boris Excel Programming 2 August 6th 03 02:30 AM


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