UserForm Initialization

  • Thread starter Thread starter Patrick C. Simonds
  • Start date Start date
P

Patrick C. Simonds

Sorry if this is a second post, but my reader said my original message was
no longer on the server.

In UserForm Initialization, is there any way to have TextBox4 always show
the value of cell A4?
 
Sorry if this is a second post, but my reader said my original message was
no longer on the server.

In UserForm Initialization, is there any way to have TextBox4 always show
the value of cell A4?

Hrm, I couldn't see my reply to the original post so I am trying
again....

Private Sub UserForm_Initialize()

Me.TextBox1.Value =
ThisWorkbook.Sheets("Sheet1").Range("A4").Value
' Or
' Me.TextBox1.Value = ThisWorkbook.ActiveSheet.Range("A4").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