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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
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,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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