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 |
All times are GMT +1. The time now is 10:37 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com