Automatic Macro

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi can anyone help,

I have created a dropdown list in excel using data validation which I am
then using via lookups to fill in a table below, but some of the column
headers are merged by two cells and others by four, is there any way to
create a macro by when a selection is made via the dropdown list it will
format the merged cells accordingly,

Thanks
 
In xl2000 and higher, the worksheet_change event should fire when a
selection is made from the drodown list.

the cell triggering the event is passed in the Target argument. You can
check that in your code to see if a selection was made to the dropdown and
then perform the formatting if warranted.

See Chip Pearson's page on events
http://www.cpearson.com/excel/events.htm

if you need more information on events.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top