Screen Updating

ercedwards

Board Regular
Joined
Apr 27, 2013
Messages
125
I have a macro that clears all of the cells in a workbook before I repopulate them with new data.
The first step in the macro clears all of the Command Button captions. I then do an Application.Screenupdating=True

I then carry on to clear all other cells. As these are being cleared they appear as cleared on the screen.

The issue I have is that the Command Button captions don't appear as clear even though I cleared them first.

Since I repopulate everything immediately after, the original CB captions still show even though I have changed them and all of the correct data is in each cell.

Very strange. I've tried inserting WAIT, DoEvents and even re-selecting the workbook but neither helped.

Suggestions such as VBA code to refresh the Command Buttons?

Thanks kindly
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Confusing I know, but the correct syntax for this is
Code:
objX.Visible = False

It will not solve your problem unfortunately ;)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,318
Members
452,634
Latest member
cpostell

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