Macro stopped working - object error

theta

Well-known Member
Joined
Jun 9, 2009
Messages
960
Hi

I have been analysing a macro left behind by a previous employee who was unable to complete the project. It has suddenly stopped working giving me an 'object not available on this machine' error. The code is :

Rich (BB code):
Private Sub UserForm_Initialize()
   'UserForm_Initialize: This runs when the form is loaded.
    On Error GoTo ErrHandler
    With Me
       .progProgBar.Min = 0
       .progProgBar.Value = 0
       .Repaint
    End With
TheEnd:
    Exit Sub
ErrHandler:
    Call LogErr("UserForm_Initialize", Err.Number, Err.Description)
    GoTo TheEnd
End Sub

Any ideas guys, this has presented me with a big problem as the other macros all run after this.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Has the userform been edited? Perhaps objects have been removed or renamed?
 
Upvote 0
Looks like a progress bar has been deleted (named "progProgBar") but cant find the progress bar object to draw/insert a new one?
 
Upvote 0
Ah...the progress bar is not availabe on the toolbox anymore?

It was available but now it has disappeared (using Excel 2007)

How can I get this back (can't see anythig under Tools > Additional controls)

When I open it with 2003 I can see the progress bar ?
 
Last edited:
Upvote 0
Check to see if you have a missing reference in the project, although usually, I'd expect a warning message if you did.

I can't check what's available in 2007 right now, but I tend to write % complete to the status bar in most of my 2007 developed apps rather than use a prog bar
 
Upvote 0

Forum statistics

Threads
1,224,516
Messages
6,179,231
Members
452,898
Latest member
Capolavoro009

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top