Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a workbook with 12 sheets, a userform and a couple of modules. This
is my first foray into using a UserForm for data entry. I run the UserForm from a customized ribbon tab. I would like to set the ControlSource property in a textbox to a sheet called "UserData" into cell B4. When I try to enter Worksheets("UserData").Range("B4") (or all combinations) I get an error: "Could not set the ControlSource property. Invalid property value." Could you please explain how I do this properly? Thanks very much. ... rick |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Rick,
TextBox1.ControlSource = "UserData!B4" -- Regards, OssieMac "rick" wrote: I have a workbook with 12 sheets, a userform and a couple of modules. This is my first foray into using a UserForm for data entry. I run the UserForm from a customized ribbon tab. I would like to set the ControlSource property in a textbox to a sheet called "UserData" into cell B4. When I try to enter Worksheets("UserData").Range("B4") (or all combinations) I get an error: "Could not set the ControlSource property. Invalid property value." Could you please explain how I do this properly? Thanks very much. ... rick |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I like:
TextBox1.ControlSource _ = worksheets("UserData").range("B4").address(externa l:=true) Then I never have to worry about the syntax. rick wrote: I have a workbook with 12 sheets, a userform and a couple of modules. This is my first foray into using a UserForm for data entry. I run the UserForm from a customized ribbon tab. I would like to set the ControlSource property in a textbox to a sheet called "UserData" into cell B4. When I try to enter Worksheets("UserData").Range("B4") (or all combinations) I get an error: "Could not set the ControlSource property. Invalid property value." Could you please explain how I do this properly? Thanks very much. .. rick -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you very much OssieMac and Dave Peterson. It looks like I can't put
the target into the Property sheet's controlsource but it works within a subroutine of the UserForm. "rick" wrote in message ... I have a workbook with 12 sheets, a userform and a couple of modules. This is my first foray into using a UserForm for data entry. I run the UserForm from a customized ribbon tab. I would like to set the ControlSource property in a textbox to a sheet called "UserData" into cell B4. When I try to enter Worksheets("UserData").Range("B4") (or all combinations) I get an error: "Could not set the ControlSource property. Invalid property value." Could you please explain how I do this properly? Thanks very much. .. rick |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
ControlSource and Localization Issue?? (run-time error '380' Could not set the ControlSource property) | Excel Programming | |||
Could not set the ControlSource property. Invalid property value error | Excel Programming | |||
Syntax for TextBox ControlSource Property to another worksheet | Excel Programming | |||
ControlSource in a userform textbox | Excel Programming | |||
Textbox ControlSource Property - Excel 97 | Excel Programming |