Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Rainhard Fischer   on Feb 19 In MS Office Category.

  
Question Answered By: Scott Anderson   on Feb 19

'you can do this
Private Sub CommandButton1_Click() 'get from sheet
TextBox1.Text = ActiveSheet.Cells(2, 1)
TextBox2.Text = ActiveSheet.Cells(2, 2)
End Sub

Private Sub CommandButton2_Click() 'put into sheet
ActiveSheet.Cells(2, 1) = TextBox1.Text
ActiveSheet.Cells(2, 2) = TextBox2.Text
End Sub

'and/or perhaps this
Private Sub UserForm_Initialize() 'get from sheet
TextBox1.Text = ActiveSheet.Cells(2, 1)
TextBox2.Text = ActiveSheet.Cells(2, 2)
End Sub

Share: 

 

This Question has 6 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Textbox - simple question? Or get search suggestion and latest updates.


Tagged: