Screen Refresh

cswain99

Board Regular
Joined
May 27, 2010
Messages
110
I have a macro that connects to the database and puts some info into a textbox. It then Makes a chart with a picture of the textbox and saves it as a file on the hardrive. When I open the picture there is no Values in the Textbox The Issue is that the Values do not go into the textbox until after the macro is done running. Is there a way to refresh the Values of the textbox before it Exports the picture?
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Make sure you turn on screen updating at that point in the code
PHP:
Application.ScreenUpdating = True
'''''and then after you take the picture
Application.ScreenUpdating = False
 
Upvote 0
Tried that but the textbox still does not show the value in the textbox until the macro is finished running
 
Upvote 0
Maybe if we could see your code it might be easier?

Paste it to the forum using code tags
(type [ C O D E ] put your code in here then [ / C O D E ] without the spaces in the square brackets) as it sounds like your code needs rearranging
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,151
Members
452,891
Latest member
JUSTOUTOFMYREACH

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