Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Nat Nat is offline
external usenet poster
 
Posts: 47
Default saving a new macro in Excel 07

Just a quick question. If I create a new macro in 07, how do I save it so
that it can be used in all workbooks not just the open workbook?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default saving a new macro in Excel 07

Either place the macro(s) in a new workbook and save it as an Add-in or
place the macro(s) in your Personal.xlsb workbook.

Of course you may have to edit your macro if any hard-coded sheetnames or
other stuff.

Use Activeworkbook and ActiveSheet in place of hard-coded names.


Gord Dibben MS Excel MVP


On Mon, 22 Jun 2009 11:13:02 -0700, Nat
wrote:

Just a quick question. If I create a new macro in 07, how do I save it so
that it can be used in all workbooks not just the open workbook?


  #3   Report Post  
Posted to microsoft.public.excel.misc
Nat Nat is offline
external usenet poster
 
Posts: 47
Default saving a new macro in Excel 07

Thanks Gord. Much appreciated.

"Gord Dibben" wrote:

Either place the macro(s) in a new workbook and save it as an Add-in or
place the macro(s) in your Personal.xlsb workbook.

Of course you may have to edit your macro if any hard-coded sheetnames or
other stuff.

Use Activeworkbook and ActiveSheet in place of hard-coded names.


Gord Dibben MS Excel MVP


On Mon, 22 Jun 2009 11:13:02 -0700, Nat
wrote:

Just a quick question. If I create a new macro in 07, how do I save it so
that it can be used in all workbooks not just the open workbook?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default saving a new macro in Excel 07

You can also export it to a .bas file, then import it into another
spreadsheet from there (this is in Excel 2003, but I assume there is
something similar in 07).
--
future_vba_expert


"Nat" wrote:

Thanks Gord. Much appreciated.

"Gord Dibben" wrote:

Either place the macro(s) in a new workbook and save it as an Add-in or
place the macro(s) in your Personal.xlsb workbook.

Of course you may have to edit your macro if any hard-coded sheetnames or
other stuff.

Use Activeworkbook and ActiveSheet in place of hard-coded names.


Gord Dibben MS Excel MVP


On Mon, 22 Jun 2009 11:13:02 -0700, Nat
wrote:

Just a quick question. If I create a new macro in 07, how do I save it so
that it can be used in all workbooks not just the open workbook?



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 input password when saving doc in excel Nissassa Excel Discussion (Misc queries) 2 October 29th 08 08:22 PM
Help with saving a Macro Keepsmiling1228 Excel Worksheet Functions 1 April 2nd 08 12:31 AM
Saving a copy of excel file in macro but have it auto write pano Excel Worksheet Functions 4 March 27th 07 11:54 PM
Excel quits when saving Macro spreadsheets Shake''n''Bake Wagner Excel Discussion (Misc queries) 0 August 2nd 06 09:41 PM
Saving Excel using Macro mrbalaje Excel Discussion (Misc queries) 4 April 20th 05 02:32 PM


All times are GMT +1. The time now is 12:46 PM.

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

About Us

"It's about Microsoft Excel"