#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Macro File Locations

Planning on copying Excel Macros from one PC to another; he uses a base Macro
template for the majority of the macro's. Are there file extensions for
Macro files? I realize that the macros are associated with the specific file
or workbook, but can we locate the macros separately?

Copying all the current Excel documents to the new system should accomplish
maintaining his Macro files, am I right?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Macro File Locations

Macros live in workbooks--so any extension that is ok for a workbook is ok for a
workbook with macros. Well, until you get to xl2007. It has special extensions
that indicate the workbook has macros (like .xlsm (with the M)) and special
extensions for workbooks with no macros (like .xlsx (with the last X)).

So workbooks with macros (in xl2003) could be .xls, .xla, .xlt (pretty unusual
for templates, but not impossible), and even .html.

If you're staying within the same version of office...

Saved from a previous post (so there it's kind of redundant at the end):

I have a short list of things to copy/update when we changed pc's at work.

It's not complete, but may help you.

Word/Excel files:

FileName Use
custom.dic personal dictionary
*.acl personal autocorrect list
mssp2_en.exc personal exclusion dictionary
normal.dot default (for new documents) template
*.dot Any other templates you've made

*.xlb personal toolbar
book.xlt defaults for new workbooks
sheet.xlt defaults for new worksheets
personal.xl* personal macros
*.xlt Any other templates you've made

And don't forget any:
Local files (If you don’t store on LAN)
(Settings) Directories and other defaults (Tools|Options stuff)

====

I've found the easiest way to find these files is to use Windows start
button|Search.

Remember to look through hidden folders/files. And if I find multiple files of
the same name, I open excel (say), then make a minor change to that file. Then
search again. Then I can pick out the current version of the file.

That said, if you're upgrading from an older version of office, I wouldn't copy
the toolbar. (I would take good notes to help me rebuild this toolbar (maybe
even fix it up a bit).)

Same with the normal.dot (I'd let MSWord rebuild that--then just copy|paste any
macros into it manually.)

The *.xlt (book.xlt, sheet.xlt), I'd copy over, but then open and resave them
using the newer version.

Lori-Wheaten wrote:

Planning on copying Excel Macros from one PC to another; he uses a base Macro
template for the majority of the macro's. Are there file extensions for
Macro files? I realize that the macros are associated with the specific file
or workbook, but can we locate the macros separately?

Copying all the current Excel documents to the new system should accomplish
maintaining his Macro files, am I right?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Macro File Locations

Macros are embedded directly in the XL files. There are no seperate files
associated with the macros as you would find in uncompiled VB6 source code.
--
HTH...

Jim Thomlinson


"Lori-Wheaten" wrote:

Planning on copying Excel Macros from one PC to another; he uses a base Macro
template for the majority of the macro's. Are there file extensions for
Macro files? I realize that the macros are associated with the specific file
or workbook, but can we locate the macros separately?

Copying all the current Excel documents to the new system should accomplish
maintaining his Macro files, am I right?

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
file locations Pam[_2_] Setting up and Configuration of Excel 0 August 10th 07 03:20 PM
File locations becoming relative when workbook is emailed by macro Sam Excel Discussion (Misc queries) 1 September 4th 06 07:18 PM
Moving file locations Derek Links and Linking in Excel 1 August 9th 06 12:45 AM
external data file locations Lou Sanderson Excel Discussion (Misc queries) 4 April 26th 06 05:17 PM
Is it possible to save an Excel file to 2 locations? Chris_7_1 New Users to Excel 1 January 7th 05 01:03 AM


All times are GMT +1. The time now is 02:56 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"