txtbox code

S

Sal_sal

I have created a form and want to display cell
information from a spreadsheet in a textbox on that form -
any ideas for the VBA code?

Thanks
 
B

BrianB

Use the Initialise event of the form :-

Private Sub UserForm_Initialize()
TextBox1.Text = ActiveSheet.Range("A1").Value
End Sub
 
Top