PC Review


Reply
Thread Tools Rate Thread

controlsource cells(2,3) ?

 
 
Helmut Weber
Guest
Posts: n/a
 
      10th Jun 2007
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

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      10th Jun 2007
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
Helmut Weber
Guest
Posts: n/a
 
      10th Jun 2007
Thank you Bob

--
Greetings from Bavaria, Germany

Helmut Weber

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

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Set ControlSource DS Microsoft Access Form Coding 2 14th Aug 2008 03:23 AM
ControlSource and Localization Issue?? (run-time error '380' Could not set the ControlSource property) TCook Microsoft Excel Programming 1 4th Mar 2007 08:12 AM
controlsource cells in listobox yoramsk@gmail.com Microsoft Excel Programming 8 11th Nov 2005 11:06 PM
ControlSource Greg Microsoft Excel Programming 2 2nd Apr 2005 04:57 AM
resetting controlsource cells Microsoft Excel Programming 1 2nd Apr 2004 06:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:08 AM.