Originally Posted by baklava
The spreadsheet is unfortunately not working with Office 2010.
When I try to change something or load it says "could not load an object because it is not available on this machine" and at Virtual Basic Code screen, it says "Compile Error: Can't find project or library" while standing on "server" and "cell" variables.
Is there a way to fix this problem with Office 2010?
|
Click OK through the errors and it should get you into a window where the code is being displayed...
Take the two lines you see below the one highlighted and comment out where you see ProgressBarFrame (put a single quote in front of both lines) so that it looks like this"
Sub progress(percent As Single)
If Worksheets("Settings").Range("UseProgressBar").value = "Yes" Then
'ProgressBarFrame.ProgressBar.value = percent
'ProgressBarFrame.percLabel.caption = Int(percent) & "%"
DoEvents
End If
'Application.StatusBar = Int(percent) & "%"
End Sub
Press F5 to let the program continue and it will choke on the next spot that references the Progress Bar.. comment it out as well by putting the single quote in front of line:
Function getprogress()
'getprogress = ProgressBarFrame.ProgressBar.value
End Function
Press F5 again and it then the program will run until completion. Big difference here of course is that since you commented out those lines for the progress bar.,.. the bar will not show nor update and you will be stuck with a window with a label in it.. but the program is still running.. there is just no visual indication that is.
I am sure that there is a better way to fix it... but it has been years since I have worked with VBA.