txtbox code

  • Thread starter Thread starter Sal_sal
  • Start date Start date
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
 
Use the Initialise event of the form :-

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top