Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 40
Default anyway to make a macro for all of excel

is there anyway to make a macro that applies to all of excel..
basically to every workbook that i open? like can i make a
permeniant button in excel.. that will be there for every spreadsheet
that i open?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default anyway to make a macro for all of excel

Lots of people keep a workbook named personal.xls in their XLStart folder.

They keep all their macros that they want available whenever excel opens in that
file.

To give myself access to the macros (instead of using tools|macro|macros
dialog), I use one of these.

For additions to the worksheet menu bar, I really like the way John Walkenbach
does it in his menumaker workbook:
http://j-walk.com/ss/excel/tips/tip53.htm

Here's how I do it when I want a toolbar:
http://www.contextures.com/xlToolbar02.html
(from Debra Dalgleish's site)

=====
Ps. If you're going to share this file with others, then don't call it
personal.xls. The recipients could already have that file name in use.

Call it something like:
MithuUtils.xls

mithu wrote:

is there anyway to make a macro that applies to all of excel..
basically to every workbook that i open? like can i make a
permeniant button in excel.. that will be there for every spreadsheet
that i open?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 340
Default anyway to make a macro for all of excel

If you save your macro in your personal.xls file, it will be available to be
run in all workbooks.

Bob Flanagan
Macro Systems
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"mithu" wrote in message
ups.com...
is there anyway to make a macro that applies to all of excel..
basically to every workbook that i open? like can i make a
permeniant button in excel.. that will be there for every spreadsheet
that i open?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 40
Default anyway to make a macro for all of excel

ok so here is something interesting i found.

i dont if this is with every version of excel.. but if i put a macro
in personal.xls
lets say i put

sub emailfile()
....
end sub

that works fine.

but if i put a function that does not work.
for instance i put

Function NumberIt(CompanyCell As Range) As Double
C = CompanyCell.Value
For x = 1 To Len(C)
If IsNumeric(Mid(C, x, 1)) Then n = n & Mid(C, x, 1)
Next x
NumberIt = --n
End Function

i use this to extract a number from a cell from vlookup
so i would use this like =vlookup(numberIt(a1).......
this doesnt work if i put it in personal.. but it does if i put it in
the macro sheet of the book..

really wired.. you guys know anyway to get functions to work on every
workbook?

On Mar 20, 11:22 am, "Bob Flanagan" wrote:
If you save your macro in your personal.xls file, it will be available to be
run in all workbooks.

Bob Flanagan
Macro Systemshttp://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"mithu" wrote in message

ups.com...



is there anyway to make a macro that applies to all of excel..
basically to every workbook that i open? like can i make a
permeniant button in excel.. that will be there for every spreadsheet
that i open?- Hide quoted text -


- Show quoted text -



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 40
Default anyway to make a macro for all of excel

never mind i get it you have to call it from the personal.xls file

so i would have to put

=vlookup(personal.xls!numberit(a1)....


thanks guys

On Mar 20, 2:09 pm, "mithu" wrote:
ok so here is something interesting i found.

i dont if this is with every version of excel.. but if i put a macro
in personal.xls
lets say i put

sub emailfile()
...
end sub

that works fine.

but if i put a function that does not work.
for instance i put

Function NumberIt(CompanyCell As Range) As Double
C = CompanyCell.Value
For x = 1 To Len(C)
If IsNumeric(Mid(C, x, 1)) Then n = n & Mid(C, x, 1)
Next x
NumberIt = --n
End Function

i use this to extract a number from a cell from vlookup
so i would use this like =vlookup(numberIt(a1).......
this doesnt work if i put it in personal.. but it does if i put it in
the macro sheet of the book..

really wired.. you guys know anyway to get functions to work on every
workbook?

On Mar 20, 11:22 am, "Bob Flanagan" wrote:



If you save your macro in your personal.xls file, it will be available to be
run in all workbooks.


Bob Flanagan
Macro Systemshttp://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel


"mithu" wrote in message


oups.com...


is there anyway to make a macro that applies to all of excel..
basically to every workbook that i open? like can i make a
permeniant button in excel.. that will be there for every spreadsheet
that i open?- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default anyway to make a macro for all of excel

That's the main reason I put my macros and functions in an Add-in.

You don't have to preface with the filename.

Save a copy of Personal.xls as File TypeMS Excel Add-in(*.xla)

Stick it in your Office\Library folder and Load it through ToolsAdd-ins.

Leave it checked and it is always available.

Remove Personal.xls from your XLSTART folder.

One note: the Macros don't show up in ToolsMacroMacros.


Gord Dibben MS Excel MVP

On 20 Mar 2007 11:19:59 -0700, "mithu" wrote:

never mind i get it you have to call it from the personal.xls file

so i would have to put

=vlookup(personal.xls!numberit(a1)....


thanks guys

On Mar 20, 2:09 pm, "mithu" wrote:
ok so here is something interesting i found.

i dont if this is with every version of excel.. but if i put a macro
in personal.xls
lets say i put

sub emailfile()
...
end sub

that works fine.

but if i put a function that does not work.
for instance i put

Function NumberIt(CompanyCell As Range) As Double
C = CompanyCell.Value
For x = 1 To Len(C)
If IsNumeric(Mid(C, x, 1)) Then n = n & Mid(C, x, 1)
Next x
NumberIt = --n
End Function

i use this to extract a number from a cell from vlookup
so i would use this like =vlookup(numberIt(a1).......
this doesnt work if i put it in personal.. but it does if i put it in
the macro sheet of the book..

really wired.. you guys know anyway to get functions to work on every
workbook?

On Mar 20, 11:22 am, "Bob Flanagan" wrote:



If you save your macro in your personal.xls file, it will be available to be
run in all workbooks.


Bob Flanagan
Macro Systemshttp://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel


"mithu" wrote in message


oups.com...


is there anyway to make a macro that applies to all of excel..
basically to every workbook that i open? like can i make a
permeniant button in excel.. that will be there for every spreadsheet
that i open?- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 40
Default anyway to make a macro for all of excel

Thats a great idea Gord,

Thanks for the tip

On Mar 20, 3:18 pm, Gord Dibben <gorddibbATshawDOTca wrote:
That's the main reason I put my macros and functions in an Add-in.

You don't have to preface with the filename.

Save a copy of Personal.xls as File TypeMS Excel Add-in(*.xla)

Stick it in your Office\Library folder and Load it through ToolsAdd-ins.

Leave it checked and it is always available.

Remove Personal.xls from your XLSTART folder.

One note: the Macros don't show up in ToolsMacroMacros.

Gord Dibben MS Excel MVP

On 20 Mar 2007 11:19:59 -0700, "mithu" wrote:



never mind i get it you have to call it from the personal.xls file


so i would have to put


=vlookup(personal.xls!numberit(a1)....


thanks guys


On Mar 20, 2:09 pm, "mithu" wrote:
ok so here is something interesting i found.


i dont if this is with every version of excel.. but if i put a macro
in personal.xls
lets say i put


sub emailfile()
...
end sub


that works fine.


but if i put a function that does not work.
for instance i put


Function NumberIt(CompanyCell As Range) As Double
C = CompanyCell.Value
For x = 1 To Len(C)
If IsNumeric(Mid(C, x, 1)) Then n = n & Mid(C, x, 1)
Next x
NumberIt = --n
End Function


i use this to extract a number from a cell from vlookup
so i would use this like =vlookup(numberIt(a1).......
this doesnt work if i put it in personal.. but it does if i put it in
the macro sheet of the book..


really wired.. you guys know anyway to get functions to work on every
workbook?


On Mar 20, 11:22 am, "Bob Flanagan" wrote:


If you save your macro in your personal.xls file, it will be available to be
run in all workbooks.


Bob Flanagan
Macro Systemshttp://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel


"mithu" wrote in message


oups.com...


is there anyway to make a macro that applies to all of excel..
basically to every workbook that i open? like can i make a
permeniant button in excel.. that will be there for every spreadsheet
that i open?- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -



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
make a macro to insert a macro mithu Excel Discussion (Misc queries) 6 March 20th 07 06:04 PM
Make Custom Macro always Available bookman3 Excel Worksheet Functions 2 October 29th 06 11:59 PM
how do i make a commandbutton run a macro?? Shax New Users to Excel 7 June 7th 06 05:16 PM
Help Me Make Macro Aamer Excel Discussion (Misc queries) 1 September 4th 05 01:34 PM
is there anyway to make it so the users of my excel spread sheet cant view the macro code w/o a password? Daniel Excel Worksheet Functions 2 June 28th 05 05:34 AM


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