I have a user form with various textboxes which have the ControlSource property set to cells in Sheet1. There is also a CommandButton.
Clicking the CommandButton retrieves data from a SQL Server database and populates Sheet1. However the textboxes are not refreshing unless I close the user form and reopen it. I have tried UserForm1.Repain as the last line in the CommandButton Click event but it is still not working.
OK, building on my previous comment, you could do something like this to automate the reloading of the
ControlSourceof each textbox on the form: