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

I am using the below code to populate combobox6 with
values from columnAG starting in row 3. In this row there
are 7 values(Range AG3:AG9) and everything below row 9 are
empty cells. This code populates the combobox with 7
values but it also is putting in alot of empty values.


ComboBox6.RowSource = "OFFSET(" & Worksheets(8).Name & "!
AG3,,,COUNTA(" & Worksheets(8).Name & "!AG:AC))"


How do I prevent it from showing empty values?

Todd Huttenstine
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default RowSource Problem

Todd,

It looks like the COUNTA portion of your formula is counting too many
columns.

try

ComboBox6.RowSource = "OFFSET(" & Worksheets(8).Name & "!
AG3,,,COUNTA(" & Worksheets(8).Name & "!AG3:AG100))"


This may still have a problem, as COUNTA counts blanks. IF the cells
are empty hwever it should work.


---
Message posted from http://www.ExcelForum.com/

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
RowSource in ListBox aet-inc[_2_] Excel Programming 1 December 3rd 03 12:41 AM
Dropdown Rowsource Aechelon[_7_] Excel Programming 1 October 24th 03 11:48 PM
ListBox Rowsource Limitation?? Dave Baranas Excel Programming 2 September 29th 03 05:01 PM
listbox rowsource Christy[_2_] Excel Programming 4 September 20th 03 11:44 PM


All times are GMT +1. The time now is 09:32 AM.

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

About Us

"It's about Microsoft Excel"