Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Hi,
I would like to know how to get a UserForm's TextBox to show the value of a cell when the UserForm is opened. I named the TextBox GiftTextBox, and I was hoping something like GiftTextBox.Value = ActiveCell.Offset(0, 6).Value would do it but I can't get that to work. Is there a simple way for the ActiveCell.Offset(0, 6).Value to be shown somehow on the UserForm? I don't care whether it's in a TextBox or some other box, as long as I can get the value to appear on the UserForm. Rob |
#2
![]() |
|||
|
|||
![]() Rob, Something like... UserForm1.GiftTextBox.Value = ActiveCell.Offset(0, 6).Value Jim Cone San Francisco, USA "Rob" wrote in message u... Hi, I would like to know how to get a UserForm's TextBox to show the value of a cell when the UserForm is opened. I named the TextBox GiftTextBox, and I was hoping something like GiftTextBox.Value = ActiveCell.Offset(0, 6).Value would do it but I can't get that to work. Is there a simple way for the ActiveCell.Offset(0, 6).Value to be shown somehow on the UserForm? I don't care whether it's in a TextBox or some other box, as long as I can get the value to appear on the UserForm. Rob |
#3
![]() |
|||
|
|||
![]()
Rob,
Try GiftTextBox.Text = ActiveCell.Offset(0, 6).Value Henry "Rob" wrote in message u... Hi, I would like to know how to get a UserForm's TextBox to show the value of a cell when the UserForm is opened. I named the TextBox GiftTextBox, and I was hoping something like GiftTextBox.Value = ActiveCell.Offset(0, 6).Value would do it but I can't get that to work. Is there a simple way for the ActiveCell.Offset(0, 6).Value to be shown somehow on the UserForm? I don't care whether it's in a TextBox or some other box, as long as I can get the value to appear on the UserForm. Rob |
#4
![]() |
|||
|
|||
![]()
Hi Henry,
Thanks for that, but in my application I needed Jim's suggestion by adding the UserForm's name to the beginning of the line. Rob "Henry" wrote in message ... Rob, Try GiftTextBox.Text = ActiveCell.Offset(0, 6).Value Henry "Rob" wrote in message u... Hi, I would like to know how to get a UserForm's TextBox to show the value of a cell when the UserForm is opened. I named the TextBox GiftTextBox, and I was hoping something like GiftTextBox.Value = ActiveCell.Offset(0, 6).Value would do it but I can't get that to work. Is there a simple way for the ActiveCell.Offset(0, 6).Value to be shown somehow on the UserForm? I don't care whether it's in a TextBox or some other box, as long as I can get the value to appear on the UserForm. Rob |
#5
![]() |
|||
|
|||
![]()
Hi Jim,
I was so close....but thanks! It did the trick. You can try so many things and miss the obvious. Rob "Jim Cone" wrote in message ... Rob, Something like... UserForm1.GiftTextBox.Value = ActiveCell.Offset(0, 6).Value Jim Cone San Francisco, USA "Rob" wrote in message u... Hi, I would like to know how to get a UserForm's TextBox to show the value of a cell when the UserForm is opened. I named the TextBox GiftTextBox, and I was hoping something like GiftTextBox.Value = ActiveCell.Offset(0, 6).Value would do it but I can't get that to work. Is there a simple way for the ActiveCell.Offset(0, 6).Value to be shown somehow on the UserForm? I don't care whether it's in a TextBox or some other box, as long as I can get the value to appear on the UserForm. Rob |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Auto Populating cells from a master spreadsheet | Excel Discussion (Misc queries) | |||
Populating another tab. | Excel Discussion (Misc queries) | |||
Populating a cell when certain cell is clicked | Excel Discussion (Misc queries) | |||
populating sheets based on data from parent sheets | Excel Discussion (Misc queries) | |||
Automatically Populating Worksheet from Collected Input for Pricelist | Excel Worksheet Functions |