#1   Report Post  
Junior Member
 
Posts: 2
Default Macro with worksheet

Hi,
Does anyone know how to save a worksheet within a macro.

I already created a macro and saved it to the excel add ins, I want to save a worksheet to it so that when the macro works on any sheet it uses data from that saved worksheet in it (as a database)?

Hope it is clear...!
  #2   Report Post  
Member
 
Location: Bangalore
Posts: 41
Thumbs up

Quote:
Originally Posted by boodybah View Post
Hi,
Does anyone know how to save a worksheet within a macro.

I already created a macro and saved it to the excel add ins, I want to save a worksheet to it so that when the macro works on any sheet it uses data from that saved worksheet in it (as a database)?

Hope it is clear...!
Hi,

Put the worksheet in your addin. To do this open the workbook (the .xlsm version of the addin) and put the worksheet there. Save the workbook and convert it to addin again. Replace this addin with the existing one.

You can then write code/formulas that takes an argument from the open workbook and compares it with the worksheet saved within your addin. Does this make sense?

If you are not sure, please share the sample addin and what you want to do with it and I can sort it out for you.

Thank You,
Prashant
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to name worksheet tabs using a cell within the worksheet? Jennifer Excel Discussion (Misc queries) 4 November 6th 12 05:03 PM
Macro to Insert Worksheet with Worksheet Name the Current Date Steve Excel Programming 1 February 27th 10 10:33 PM
How? Macro to copy range to new worksheet, name new worksheet, loop Repoman Excel Programming 9 October 9th 03 01:45 PM
macro to apply worksheet event to active worksheet Paul Simon[_2_] Excel Programming 3 August 7th 03 02:50 AM
Record Worksheet Content as Macro and Execute from another Worksheet David McRitchie[_2_] Excel Programming 2 July 23rd 03 09:43 AM


All times are GMT +1. The time now is 10:04 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"