excel - How do I populate a combobox with the name(s) of a worksheet as the result of a date selection? -


i have 2 comboboxes. 1st combobox (cboreviewdate) holds dates. 2nd combobox (cboreviewmodule) populated names of worksheets in active workbook (if contain date in column "x" matches date selected in cboreviewdate).

i need setting logic , choosing correct search tool. logic flow work? loop routine erase existing entry in cboreviewmodule?

this learning process me, develop code myself. please point me in right direction.

here pseudocode:

'run on "cboreviewdate"_change state 'countif (date in column "x" = "cboreviewdate.value") in worksheet 1 of active workbook 'if result <> 0 pass name of worksheet variable "a" '.additem "cboreviewmodule" using value of variable "a" 'reset value of variable "a" , loop until worksheets in active workbook have been searched 

okay, here's me pointing in right/possible/some? direction.

  • the first combobox should trigger change event when select date
  • on event should map procedure, would
  • a) cycle worksheets (workbook.worksheets collection)
  • b) check each worksheet date in column x
  • c) how checking you, may wish experiment find method of object range (record macro ctrl+f , see how works), careful error handling (when match not found)
  • d) if date found, worksheet.name added item collection of first combobox.

Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -