Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Combobox Rowsource

Hi guys. I'm trying to set the rowsource of my combobox to data on a worksheet. The range of cells I want to refer to is dynamic, but I don't want to refer to a range. Here's what I have and I'm not sure why it's not working:
Dim toEnd As Double

toEnd = 5

Do Until Sheets("Trial Balance").Cells(toEnd, 2) = Empty
toEnd = toEnd + 1
Loop

frmTransEntry.cbx1.RowSource = "'Trial Balance'!b5:b" & toEnd - 1

Any help?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default Combobox Rowsource

Hi guys. I'm trying to set the rowsource of my combobox to data on a
worksheet. The range of cells I want to refer to is dynamic, but I
don't want to refer to a range. Here's what I have and I'm not sure
why it's not working: Dim toEnd As Double

toEnd = 5

Do Until Sheets("Trial Balance").Cells(toEnd, 2) = Empty
toEnd = toEnd + 1
Loop

frmTransEntry.cbx1.RowSource = "'Trial Balance'!b5:b" & toEnd - 1

Any help?


I don't see why you can't use the name of the dynamic range since, if
properly defined, it will only contain data within its boundaries.

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Combobox Rowsource

Never mind. Got it.

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
ComboBox RowSource Caleb Runnels Excel Programming 4 July 22nd 07 10:47 PM
ComboBox.RowSource? JimAnAmateur[_2_] Excel Programming 13 March 28th 07 01:21 AM
Combobox Rowsource kirke Excel Programming 5 September 21st 06 10:15 AM
Combobox rowsource Marinos Andreou Excel Programming 2 March 7th 06 05:08 PM
How Do I Load A ComboBox RowSource From The Results Of Another ComboBox Minitman[_4_] Excel Programming 3 October 26th 04 07:58 PM


All times are GMT +1. The time now is 09: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"