View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Brotha Lee Brotha Lee is offline
external usenet poster
 
Posts: 43
Default Using combobox to find column

Scotty,

You can use the listindex property to find the column. As you say the order
of the months appear the same as the order in the worksheet. Let's say the
combobox is populated as follows:

March, April, May, June etc.

The listindex for March will be 1, April 2 and so on.

For example if you would like to jump to column in which May resides you
could use the following code:
cells(1,combobox.listindex).select

Regards,

Brotha lee

"Scotty9349" wrote:

I am working on a rolling 12-month budget spreadsheet. The first of the 12
months can be any month.

What I would like to do is have a combobox populate the months in order Jan,
Feb, etc. Then when the user selects say June it will select the column in
which June resides. Keep in mind that June could be anywhere in the first 12
columns.

I can populate the combobox, but the order the months are populated is
identical to the order the months are listed across the top row.