Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Need help updating my macro to include a 2nd worksheet.
I have a workbook where sheet1, named Product, contains a macro. All a person has to do is enter the product number on the Product sheet and the macro looks on the next sheet called Product_Data and pulls all details for that particular product. These details are then displayed by the macro on Product sheet. Then by pressing ctl+shift+D, the next product is pulled and displayed by the macro, automatically. I now have a 2nd sheet of products called Product2_Data. I want my macro short-cut key(ctrl+shift+D) to pull and display data from Product2_Data, too. What do I need to add to my existing macro code for the macro to look for details in the Product2_Data sheet? I have tried setting an array (array("Product_Data", "Product2_Date"))in place of Product_Data. I get a run time error that picksup the following code: ActiveCell.Offset(0, 1).Range("A1").Select -- billrl34 ------------------------------------------------------------------------ billrl34's Profile: http://www.excelforum.com/member.php...o&userid=29533 View this thread: http://www.excelforum.com/showthread...hreadid=492296 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Make a Macro take out rows and add it to new worksheet | Excel Discussion (Misc queries) | |||
Closing File Error | Excel Discussion (Misc queries) | |||
Cannat paste that macro formula onto a worksheet | Excel Discussion (Misc queries) | |||
Executing macro for all worksheet from a different worksheet | New Users to Excel | |||
select worksheet to run macro | Excel Discussion (Misc queries) |