Search : in
By :

Run macro from a different workbook

Last answer on Jun 16, 2009 12:59:31 am BST smd, on Jun 15, 2009 10:30:34 am BST 
 Report this message to moderators

Hello,

i have a workbook for a particular client with all macros in that workbook. i might get a new client for which a seperate workbook will b created. i need to have one common workbook with all macros present which can be used across all clients.

Configuration: Windows XP
Firefox 3.0.10

Best answers for « run macro from a different workbook » in :
[VMWare] The different modes of VMWare network Show[VMWare] The different modes of VMWare network If you create a virtual machine using VMWare, 3 types of connectivity are provided: Host-only, NAT or Bridged. You can't use NAT and Bridged modes if you do not have the following...
Unable to run executable files (. Exe) ShowUnable to run executable files (. Exe) First Solution Second solution My programs are launching no more It may happen that only executable files aren’t eager open properly: either you have the dialog box "Open With", it opens with...
Error Message: Windows cannot run Wireless Connection ShowUse Windows to configure your wireless settings Launch Windows Zero Configuration Error Message: Windows cannot run Wireless Connection If you receive an error message that states that Windows cannot run your connection while trying to...
Download Super Macro ShowSuper macro is a free software which allows to create macro under Windows in order to activate diverse automatic actions. Apart being free, this software is easy to use and requires no knowledge in programming. You just simply click buttons, then...
Download AllKeys Macro ShowAllKeys Macro allows you to create your own macros to automate repetitive tasks. You can assign a keyboard shortcut to each task. The user can save and organize a large number of macros, and sharing among users. Advantage It offers multiple user...
Using FTP commands ShowThe FTP protocol FTP (File Transfer Protocol) is a protocol — meaning a standard language that lets two machines communicate — used so that computers of different types (or with different operating systems) can transfer files over a...

1

venkat1926, on Jun 15, 2009 12:15:40 pm BST

There is a workbook called personal.xls in your main folder. In my computer it is in folder
C:\Program Files\Microsoft Office\Office10\XLStart

if not available you open an excel workbook and give a name---personal.xls-- and save it in this folder.
perhaps it may be available in any other xlstart folder.
As it is in xlstart folder the workbook will also open when you open any excel workbook but personal.xls will be hidden. unhide this workbook and park your macros in the veditor of this file. and again save and hide the personal.xls file. The macros will be available for all the workbooks.

Reply to venkat1926

3

smd, on Jun 15, 2009 12:30:38 pm BST

Hi thanks a lot...

does it have to be only personal.xls or can i have any workbook.

the idea is to have this "personal" workbook to hold all the codes

there can be many clients and each client has its own workbook.

so when excel starts there shud be a custom menu listing all clients. on selecting a client that particular workbook should be opened and all the macros in the personal workbook shud run.

the processes for all the clients are the same. so i dont want to have same codes on each and every workbook and if any changes are required then i need to change code in all the workbooks.

Reply to smd

2

smd, on Jun 15, 2009 12:29:31 pm BST

Hi thanks a lot...

does it have to be only personal.xls or can i have any workbook.

the idea is to have this "personal" workbook to hold all the codes

there can be many clients and each client has its own workbook.

so when excel starts there shud be a custom menu listing all clients. on selecting a client that particular workbook should be opened and all the macros in the personal workbook shud run.

the processes for all the clients are the same. so i dont want to have same codes on each and every workbook and if any changes are required then i need to change code in all the workbooks.

Reply to smd

4

 venkat1926, on Jun 16, 2009 12:59:31 am BST

This is a new problem for me. You have a separate workbook for each client (e.g personaA) Now yu do NOT park in xlstart folder but any other folder. There can be an event code in the clients operating workbook(NOT personalA) that when it opens the other workbook personalA also opens and even hidden In such a case all the macros of ALL the open workbooks including those in perosnalA are available.

Try some such trick

Reply to venkat1926