VBA Code for Close

Associate
Joined
22 Apr 2003
Posts
585
Location
Newcastle
I have a user form made via Excel and need to add a button to close the form.

Does anyone know what code I should be using?

Thanks

Paul
 
Well, rather than close the form, you could add a bit of code that hides it (therefore allowing you to show it at a later stage).

The VBA code is pretty straight forward.

[sheetname].visible=xlSheetHidden
 
Ok, That works however i have one more problem

I have text boxes that allow the user to type in numbers and descriptions. I need this data to be copied to seperate cells on my worksheet when the OK button is clicked.

Anyone have any ideas?

Thanks

Paul
 
Back
Top Bottom