Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel userform save 1

Status
Not open for further replies.

autex

Technical User
Jan 11, 2005
75
US
Ok I have an excel "template" with some good macros built in. The user interfaces with the "template" through a user form. The form has textboxes that the user fills out and that excel uses for sorts etc. After user enters in textboxes and clicks the submit button excel runs macros and color coded labels show up on the form telling user what they typed in. If the user saves this userform, closes and reopens it again later with a toolbar button I want the color coded information to show up on the form not the empty text boxes. How do I get the user form to change with each user save?
 
autex,

I suspect you may have to refresh the values on the userform with the values (previously set by it) on your sheet(s) when you fire up the WorkBook. The WorkBook_Open event or the Form_Initialize event may be a good places to insert the required code.

regards Hugh,
 
Checkout the ControlSource property for the Controls on the UserForm too.
 
I think I see what you are saying. You are saying pull from the spreadsheet the values that were written to it by the userform. ?????
Unfortunately, the values aren't written anywhere on the spreadsheet the values entered onto the form by the user are used to select rows before a certain date and delete them.
where would you hold these values?
 
autex,

To recall the values I think you'll have to store them somewhere like in Sheet(2).Visible = False

regards Hugh
 
allright thanks. I'll give that a shot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top