#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default userforms

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default userforms

hi
JobBoxox1.Value = Range("A1").Value

regards
FSt1

"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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default userforms

Would it help to put that in the Initialize Event of the UserForm?
Right click the user form in design mode and click on the declarations box
at the upper right of the code window. Then from the drop down menu, click
initialize and put FSt1's code between the lines. Then when you run your
show command, the text box will load with the range value displayed.

"FSt1" wrote:

hi
JobBoxox1.Value = Range("A1").Value

regards
FSt1

"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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Userforms Andy the yeti Excel Programming 2 April 26th 06 05:32 PM
Userforms Greg[_20_] Excel Programming 1 April 4th 06 10:12 AM
Two Userforms MBlake Excel Programming 4 April 25th 05 07:23 PM
userforms [email protected] Excel Programming 1 January 11th 05 01:07 PM
Userforms..... Candee[_8_] Excel Programming 1 November 27th 03 06:02 PM


All times are GMT +1. The time now is 05:17 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"