Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Separate Macro from Workbook

In response to a question on allowing a macro to be available for all files
in Excel dated 5/17/09, FST1 wrote a solution that did what was requested.

Namely:
C:\Program Files\Microsoft Office\Office12\XLSTART (i think).
The file will open automaticly(hidden) when excel starts and all macros in
the personal.xlsb will be available for use on all files.

My question is can the same be done for certain Excel workbooks but not
others?

Any help will be greatly appreciated.

Jim Walsh
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Separate Macro from Workbook

hi
you seem to have two questions.
subject:Separate macro from workbook.
no. can't be done.
not sure about your second question. if it's in the xls start folder, it
will open with excel and all macros in the open workbooks can be use on other
files provided they are generic ie make no reference to a specific workbook
name or worksheet name.

if i didn't answer your question, post back with more detail.

Regards
FSt1

"jswalsh33" wrote:

In response to a question on allowing a macro to be available for all files
in Excel dated 5/17/09, FST1 wrote a solution that did what was requested.

Namely:
C:\Program Files\Microsoft Office\Office12\XLSTART (i think).
The file will open automaticly(hidden) when excel starts and all macros in
the personal.xlsb will be available for use on all files.

My question is can the same be done for certain Excel workbooks but not
others?

Any help will be greatly appreciated.

Jim Walsh

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Separate Macro from Workbook

You answered the real question, which was can the macros and the workbook be
separated.

What I was trying to do was to save changes in the workbook and not save
changes in the macros.

Any ideas on that one?

Thanks,

Jim Walsh


"FSt1" wrote:

hi
you seem to have two questions.
subject:Separate macro from workbook.
no. can't be done.
not sure about your second question. if it's in the xls start folder, it
will open with excel and all macros in the open workbooks can be use on other
files provided they are generic ie make no reference to a specific workbook
name or worksheet name.

if i didn't answer your question, post back with more detail.

Regards
FSt1

"jswalsh33" wrote:

In response to a question on allowing a macro to be available for all files
in Excel dated 5/17/09, FST1 wrote a solution that did what was requested.

Namely:
C:\Program Files\Microsoft Office\Office12\XLSTART (i think).
The file will open automaticly(hidden) when excel starts and all macros in
the personal.xlsb will be available for use on all files.

My question is can the same be done for certain Excel workbooks but not
others?

Any help will be greatly appreciated.

Jim Walsh

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Separate Macro from Workbook

hi
no really. the vb part and the file are intergrated. saving saves all. if
there is a way around it, i don't know it.

Regards
FSt1

"jswalsh33" wrote:

You answered the real question, which was can the macros and the workbook be
separated.

What I was trying to do was to save changes in the workbook and not save
changes in the macros.

Any ideas on that one?

Thanks,

Jim Walsh


"FSt1" wrote:

hi
you seem to have two questions.
subject:Separate macro from workbook.
no. can't be done.
not sure about your second question. if it's in the xls start folder, it
will open with excel and all macros in the open workbooks can be use on other
files provided they are generic ie make no reference to a specific workbook
name or worksheet name.

if i didn't answer your question, post back with more detail.

Regards
FSt1

"jswalsh33" wrote:

In response to a question on allowing a macro to be available for all files
in Excel dated 5/17/09, FST1 wrote a solution that did what was requested.

Namely:
C:\Program Files\Microsoft Office\Office12\XLSTART (i think).
The file will open automaticly(hidden) when excel starts and all macros in
the personal.xlsb will be available for use on all files.

My question is can the same be done for certain Excel workbooks but not
others?

Any help will be greatly appreciated.

Jim Walsh

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Separate Macro from Workbook

Been following this and not sure what OP is after.

First talks about Personal Macro Workbook being in XLSTART folder and
opening hidden, then asks "can the same be done for certain Excel workbooks
but not others?"

Does OP want to have more workbooks in XLSTART folder that open hidden?

Yes is the answer to that.

Does OP want some macros available for some workbooks but not have
Personal.xls open all the time.

Also Yes to that.

Can you have macros in a workbook and save the workbook and delete the
macros when saving.

Yes to that also.

OP needs to describe needs in more detail.


Gord Dibben MS Excel MVP

On Fri, 23 Oct 2009 12:04:01 -0700, FSt1
wrote:

hi
no really. the vb part and the file are intergrated. saving saves all. if
there is a way around it, i don't know it.

Regards
FSt1

"jswalsh33" wrote:

You answered the real question, which was can the macros and the workbook be
separated.

What I was trying to do was to save changes in the workbook and not save
changes in the macros.

Any ideas on that one?

Thanks,

Jim Walsh


"FSt1" wrote:

hi
you seem to have two questions.
subject:Separate macro from workbook.
no. can't be done.
not sure about your second question. if it's in the xls start folder, it
will open with excel and all macros in the open workbooks can be use on other
files provided they are generic ie make no reference to a specific workbook
name or worksheet name.

if i didn't answer your question, post back with more detail.

Regards
FSt1

"jswalsh33" wrote:

In response to a question on allowing a macro to be available for all files
in Excel dated 5/17/09, FST1 wrote a solution that did what was requested.

Namely:
C:\Program Files\Microsoft Office\Office12\XLSTART (i think).
The file will open automaticly(hidden) when excel starts and all macros in
the personal.xlsb will be available for use on all files.

My question is can the same be done for certain Excel workbooks but not
others?

Any help will be greatly appreciated.

Jim Walsh




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Separate Macro from Workbook

Gord,

Thanks for your interest.

I have a workbook with a large number of macros.

The workbook contains three databases. Different users use copies of the
workbook and have different data in the databases.

The Macro's may be changed from time to time by a control person and should
apply to all users workbooks.

Therefore, I would like to have a common set of macros apply to the
workbooks of each user as the workbooks are opened.

Your response of deleting Macro's when the workbook is closed would seem to
apply if I could then reestablish the common macro set when reopening any of
the workbooks.

Please give me a clue on that one and I will try it.

Thanks,

Jim Walsh

"Gord Dibben" wrote:

Been following this and not sure what OP is after.

First talks about Personal Macro Workbook being in XLSTART folder and
opening hidden, then asks "can the same be done for certain Excel workbooks
but not others?"

Does OP want to have more workbooks in XLSTART folder that open hidden?

Yes is the answer to that.

Does OP want some macros available for some workbooks but not have
Personal.xls open all the time.

Also Yes to that.

Can you have macros in a workbook and save the workbook and delete the
macros when saving.

Yes to that also.

OP needs to describe needs in more detail.


Gord Dibben MS Excel MVP

On Fri, 23 Oct 2009 12:04:01 -0700, FSt1
wrote:

hi
no really. the vb part and the file are intergrated. saving saves all. if
there is a way around it, i don't know it.

Regards
FSt1

"jswalsh33" wrote:

You answered the real question, which was can the macros and the workbook be
separated.

What I was trying to do was to save changes in the workbook and not save
changes in the macros.

Any ideas on that one?

Thanks,

Jim Walsh


"FSt1" wrote:

hi
you seem to have two questions.
subject:Separate macro from workbook.
no. can't be done.
not sure about your second question. if it's in the xls start folder, it
will open with excel and all macros in the open workbooks can be use on other
files provided they are generic ie make no reference to a specific workbook
name or worksheet name.

if i didn't answer your question, post back with more detail.

Regards
FSt1

"jswalsh33" wrote:

In response to a question on allowing a macro to be available for all files
in Excel dated 5/17/09, FST1 wrote a solution that did what was requested.

Namely:
C:\Program Files\Microsoft Office\Office12\XLSTART (i think).
The file will open automaticly(hidden) when excel starts and all macros in
the personal.xlsb will be available for use on all files.

My question is can the same be done for certain Excel workbooks but not
others?

Any help will be greatly appreciated.

Jim Walsh


.

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
Run code from separate workbook Mike Excel Programming 3 July 31st 07 07:02 PM
Range name in separate workbook Arun Excel Discussion (Misc queries) 0 November 30th 06 08:42 PM
Select sheet tabs in workbook & save to separate workbook files stratocaster Excel Worksheet Functions 2 March 1st 06 03:35 PM
userform in a separate workbook? Gary Keramidas Excel Programming 2 November 2nd 05 06:18 PM
Issuing macro in workbook from separate workbook Nigel Excel Discussion (Misc queries) 1 May 16th 05 05:46 PM


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