VBA Code for Close

~J~

~J~

Soldato
Joined
20 Oct 2003
Posts
7,558
Location
London
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
 
Associate
OP
Joined
22 Apr 2003
Posts
585
Location
Newcastle
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
 

sfx

sfx

Associate
Joined
13 Dec 2004
Posts
926
Paul2k12 said:
I am not sure as I have not done this for ages but it might be something like:

Worksheets("Sheet1").Cells(2,3).Value = txtYourTextBox.Text

sfx
 
Back
Top Bottom