Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default PROBLEM DISPLAYING USERFORM

Hi

i have a multi userform program it was fine now i cannot load one of my
forms (userform3) i get the following error message
'runtime error -2147352573 (80020003) could not find the specified
object.

I use this code to generate userform3 from userform1

Private Sub CommandButton4_Click()
Unload Me
Call SHOWCLEARS
End Sub

the userform1 unloads and calls showclears

Sub SHOWCLEARS()
Application.ScreenUpdating = False
Call counter
Application.ScreenUpdating = True
UserForm3.Show
End Sub

it debugs at the userform3.show line

the counter module above is

Sub counter()
Dim clears
Application.ScreenUpdating = False
Sheets("CLEARS").Select
Range("A3").Select
clears = 0
Do While Selection.Value < ""
ActiveCell.Offset(1, 0).Activate
clears = clears + 1
Loop
Sheets("CODES").Select
Range("D2") = clears
Range("a1").Select
Sheets("menu").Select
Application.ScreenUpdating = True
End Sub

this counts the number of lines within the range that a listbox on
userform3 shows.

any help greatly recieved

john

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default PROBLEM DISPLAYING USERFORM

have you tried hitting the reset button in the VBE?

Or closing Excel and reopening it?

--
Regards,
Tom Ogilvy

wrote in message
ups.com...
Hi

i have a multi userform program it was fine now i cannot load one of my
forms (userform3) i get the following error message
'runtime error -2147352573 (80020003) could not find the specified
object.

I use this code to generate userform3 from userform1

Private Sub CommandButton4_Click()
Unload Me
Call SHOWCLEARS
End Sub

the userform1 unloads and calls showclears

Sub SHOWCLEARS()
Application.ScreenUpdating = False
Call counter
Application.ScreenUpdating = True
UserForm3.Show
End Sub

it debugs at the userform3.show line

the counter module above is

Sub counter()
Dim clears
Application.ScreenUpdating = False
Sheets("CLEARS").Select
Range("A3").Select
clears = 0
Do While Selection.Value < ""
ActiveCell.Offset(1, 0).Activate
clears = clears + 1
Loop
Sheets("CODES").Select
Range("D2") = clears
Range("a1").Select
Sheets("menu").Select
Application.ScreenUpdating = True
End Sub

this counts the number of lines within the range that a listbox on
userform3 shows.

any help greatly recieved

john



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
Userform for displaying values from a row jgmiddel Excel Discussion (Misc queries) 0 April 25th 06 09:00 PM
UserForm Toolbox displaying Otto Moehrbach[_6_] Excel Programming 3 October 17th 04 12:47 AM
Displaying embedded chart on userform Bill Renaud[_2_] Excel Programming 2 April 6th 04 11:16 AM
displaying picture in a userform Todd Huttenstine[_3_] Excel Programming 1 January 28th 04 02:42 AM
Displaying progress on UserForm Nigel Stevens Excel Programming 1 July 9th 03 01:55 PM


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

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"