ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Help with User Form (https://www.excelbanter.com/excel-programming/399201-help-user-form.html)

Little Penny[_3_]

Help with User Form
 
I'm trying to learn a little about userforms
I have a simple user form with one textbox


This is the macro that open the form

Sub form()

frmUserform.Show

End Sub



There is one text box on the form called JobBox1


How do i get the form to open and put the value of cell A1 one in the
text box.


Thanks

JLGWhiz

Help with User Form
 
Please refrain from multiple postings. See your second post.

"Little Penny" wrote:

I'm trying to learn a little about userforms
I have a simple user form with one textbox


This is the macro that open the form

Sub form()

frmUserform.Show

End Sub



There is one text box on the form called JobBox1


How do i get the form to open and put the value of cell A1 one in the
text box.


Thanks


Tom Ogilvy

Help with User Form
 
Sub form()

With frmUserform
.JobBox1.text = ActiveSheet.Range("A1").Text
.Show
End with
End Sub

--
Regards,
Tom Ogilvy


"Little Penny" wrote:

I'm trying to learn a little about userforms
I have a simple user form with one textbox


This is the macro that open the form

Sub form()

frmUserform.Show

End Sub



There is one text box on the form called JobBox1


How do i get the form to open and put the value of cell A1 one in the
text box.


Thanks



All times are GMT +1. The time now is 01:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com