Status Bar Message

S

sethdunayer

After running a simple macro on a worksheet, the status bar reads
"table:1" then "table:2" and finally "table:3". I've never seen this
before. Why is excel displaying these messages?

Thanks
 
P

PCLIVE

This is because there is some code in the macro that is telling the status
bar to display this.

Application.StatusBar = "table:1"

Most likely this was done so that the person running the macro will have
some sort of status indicating how far the code has run.

HTH,
Paul
 
R

RyanH

The macro must be changing the Application.StatusBar Property. Maybe the
code looks something like this

Sub YourCode()

Application.StatusBar = "table:1"

'some code

Applicaiton.StatusBar = "table:2"

'some more code

Application.StatusBar = False

End Sub

Make sure that you set the Status Bar = False at the end of the Procedure to
give control back to Excel like I did in the example. Else the Status Bar
will be stuck on "table:3"
 
S

sethdunayer

The macro must be changing the Application.StatusBar Property.  Maybe the
code looks something like this

Sub YourCode()

Application.StatusBar = "table:1"

   'some code

Applicaiton.StatusBar = "table:2"

   'some more code

Application.StatusBar = False

End Sub

Make sure that you set the Status Bar = False at the end of the Procedure to
give control back to Excel like I did in the example.  Else the Status Bar
will be stuck on "table:3"
--
Cheers,
Ryan






- Show quoted text -

There is nothing in the code that references the Status Bar.
 
R

RyanH

Do you have the code to post? Is the code calling anyother procedures? Is
the macro opening other workbooks that may contain the code that is changing
the Status Bar? Is the macro in your personal workbook?

Some where in the project the Status Bar is being changed by code. It helps
if you post your code so when all can analysis it in the future.
 
S

sethdunayer

Do you have the code to post?  Is the code calling anyother procedures? Is
the macro opening other workbooks that may contain the code that is changing
the Status Bar?  Is the macro in your personal workbook?

Some where in the project the Status Bar is being changed by code.  It helps
if you post your code so when all can analysis it in the future.
--
Cheers,
Ryan






- Show quoted text -

I want to post the code...What are the correct tags I need to put
around the code in order to post it correctly? Sorry to ask this
here. I've been searching everywhere and cannot find this answer!
 
P

PCLIVE

To make sure the StatusBar code isn't in the current project, perform a
search in your VB code.

Press Alt+F11 to enter the VB Editor.
If your VBAProject Excel filename has a plus (+) next to it, click the plus
onces. If it had a minus (-) next to it, then click it twice. This will
ensure that this project is active.
Next, click your mouse cursor in the right-hand pane.
Press Ctrl+F. This should bring up the Find window.
Next to Find What, type "StatusBar".
Make sure "Current Project" is selected.
Click Find Next.

If the "StatusBar" code is in the current project, then it should be found.

As for posting the code, there may be a lot in several modules or other
places.

HTH,
Paul

--

Do you have the code to post? Is the code calling anyother procedures? Is
the macro opening other workbooks that may contain the code that is
changing
the Status Bar? Is the macro in your personal workbook?

Some where in the project the Status Bar is being changed by code. It
helps
if you post your code so when all can analysis it in the future.
--
Cheers,
Ryan






- Show quoted text -

I want to post the code...What are the correct tags I need to put
around the code in order to post it correctly? Sorry to ask this
here. I've been searching everywhere and cannot find this answer!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top