ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   controlsource cells(2,3) ? (https://www.excelbanter.com/excel-programming/391049-controlsource-cells-2-3-a.html)

Helmut Weber[_2_]

controlsource cells(2,3) ?
 
Hi everbody,

is there a way to define the controlsource property
for a textbox on a userform like
textbox1.controlsource = cells(2,3)?

I got textbox1.controlsource = "c2" working,
but for programming issues, I'm used to (rowindex, columnindex).

Also, I'd like to know,
how the two possible reference styles are called.

Thx

--

Helmut Weber

Win XP, Office 2003


Bob Phillips

controlsource cells(2,3) ?
 
textbox1.controlsource = cells(2,3).Address(false,false)

should do it

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Helmut Weber" wrote in message
...
Hi everbody,

is there a way to define the controlsource property
for a textbox on a userform like
textbox1.controlsource = cells(2,3)?

I got textbox1.controlsource = "c2" working,
but for programming issues, I'm used to (rowindex, columnindex).

Also, I'd like to know,
how the two possible reference styles are called.

Thx

--

Helmut Weber

Win XP, Office 2003




Helmut Weber[_2_]

controlsource cells(2,3) ?
 
Thank you Bob

--
Greetings from Bavaria, Germany

Helmut Weber

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"


All times are GMT +1. The time now is 11:42 PM.

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