Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default How to add a variable in a range for a Combo Box

Kali,

Too many quotes

ComboBox1.RowSource = ("D3:D" & totalRow)


--

HTH

Bob Phillips

"Kali" wrote in message
...
I have a user form with a combo box, and I am populating
it with Excel cells, but as I will use different
worksheets, the range will change.

For example: I have
ComboBox1.RowSource = ("D3:D100")

And I want to put somrthing like
ComboBox1.RowSource = ("D3:D" & totalRow")

But I don't know the syntax to put the variable in there.
All help will be apreciated!



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default How to add a variable in a range for a Combo Box

Thank you, Bob and Tom!
Kali.


-----Original Message-----
Kali,

Too many quotes

ComboBox1.RowSource = ("D3:D" & totalRow)


--

HTH

Bob Phillips

"Kali" wrote in message
...
I have a user form with a combo box, and I am

populating
it with Excel cells, but as I will use different
worksheets, the range will change.

For example: I have
ComboBox1.RowSource = ("D3:D100")

And I want to put somrthing like
ComboBox1.RowSource = ("D3:D" & totalRow")

But I don't know the syntax to put the variable in

there.
All help will be apreciated!



.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combo Box to populate variable output range DougL Excel Discussion (Misc queries) 5 February 1st 08 08:09 PM
combo box range - row Danny Excel Discussion (Misc queries) 0 April 18th 06 09:32 PM
Variable Input Range for Combo Box Defoes Right Boot Excel Worksheet Functions 2 July 20th 05 03:44 PM
combo box named range BB Excel Discussion (Misc queries) 2 June 21st 05 04:27 PM
Refer to Combo-box using a part + variable Peter[_20_] Excel Programming 3 July 29th 03 08:03 PM


All times are GMT +1. The time now is 06:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"