Help please. I'm new to VB. I'm using Excel 2002. I need to write a macro that will run by the user clicking on a command button on sheet2. I have ~20 different items that can be selected in cell b3 (by a drop list)on sheet one. I would like to have the macro select the named range that is equal to the name in cell b3, sheet1 and then print "selection".
For example:
One of the possible values of cell b3, sheet1 is "Dopamine". I would like the user to be able to click on a button on sheet2 that will select the named range "dopamine" and then print this selection. If possible I would also like to have a second option that, instead of printing, will show the print preview for the range whose name matches the name in cell b3. Any help would be appreciated, as this is my first time working with VB. Thanks in advance.
John
For example:
One of the possible values of cell b3, sheet1 is "Dopamine". I would like the user to be able to click on a button on sheet2 that will select the named range "dopamine" and then print this selection. If possible I would also like to have a second option that, instead of printing, will show the print preview for the range whose name matches the name in cell b3. Any help would be appreciated, as this is my first time working with VB. Thanks in advance.
John