Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I know how to configure a UserForm to display values from a textbox in
a specific cell: ActiveSheet.Range("A1") = TextBox.Text What I would like to do is the opposite. To design a macro that displays specific cell values in the textboxes of a UserForm that pops up. Any hope of that? Thanks to all. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() The same way as TextBox.Text = ActiveSheet.Range("A1") OR TextBox.Text = Sheets("shtname").range("A1") - Best regards, --- Yongjun CHEN ================================== - - - - www.XLDataSoft.com - - - - Free Excel/VBA Tool & Training Material ================================== "michaelberrier" wrote in message ups.com... I know how to configure a UserForm to display values from a textbox in a specific cell: ActiveSheet.Range("A1") = TextBox.Text What I would like to do is the opposite. To design a macro that displays specific cell values in the textboxes of a UserForm that pops up. Any hope of that? Thanks to all. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() I'm guessing I put that in the UserForm code module? I've tried that there and in a seperate module and cannot make it work. Thanks for helping. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You know WHAT you want to happen, and it is mostly solved
(there may be different results from these variations: TextBox.Text = Sheets("shtname").range("A1") TextBox.Text = Sheets("shtname").range("A1").Text TextBox.Text = Sheets("shtname").range("A1").Value ) but you haven't told HOW and WHEN you want this to happen. These considerations decide where to put the code. HTH. Best wishes Harald "michaelberrier" skrev i melding oups.com... I'm guessing I put that in the UserForm code module? I've tried that there and in a seperate module and cannot make it work. Thanks for helping. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Compiling macro based on cell values | Excel Discussion (Misc queries) | |||
Format cell color based on multiple cell values | Excel Discussion (Misc queries) | |||
Format cell color based on multiple cell values | Excel Discussion (Misc queries) | |||
Replacing Linked Cell Values w/ Current Values | Excel Worksheet Functions | |||
GET.CELL | Excel Worksheet Functions |