You are here:

Excel/Excel Variable Ranges

Advertisement


Question
Hi, I was wondering if it is possible to use a combo box in excel with a variable range somehow. For example, I want my combo box to display all values in column B, and say i have 2 records currently in column B.  Now i would like to add another record to column B, and have the combo box update to allow for the new record i added. Is this possible using a named range?

I'm new to excel and Vba, and have been experimenting for the past few days, but i cant seem to find any information about using variable ranges within a combo box.

Thank you so much for your help.

Answer
Hi you don't need VBA. Try something called Dynamic Named Range (it expands as you add data). It is nothing special, it is just a smart way of using Excel's formulae.

Google "Excel dynamic named range". There are many sites.

Also see: http://www.ozgrid.com/Excel/DynamicRanges.htm

HTH,
Gyula
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here

Excel

All Answers


Answers by Expert:


Ask Experts

Volunteer


Gyula Gulyas

Expertise

I can answer most questions related to macros, worksheet functions, VBA, Office automation (calling/using other MS Office programs) and geocoding using Google Maps. I have 10 years experience using and programming in MS Excel and other office applications. I have extensive experience linking and using DLLs in Excel.

Experience

Macros, worksheet functions, VBA, linking of DLLs and Office automation, geocoding using Google Maps.

©2012 About.com, a part of The New York Times Company. All rights reserved.