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


I am a programmer but have limited experience with Office Automation.
We need to somehow install a macro for groups of users at different
companies that will sort a spreadsheet based on a certain key
combination. This macro should be available to the users for any new
spreadsheet they create. It also needs to be easy for us to give them
the macro (send via e-mail...?).

* Is there a way to e-mail a macro that self-installs?
* Is there a way to install a macro globally for each company... so all
users at that company use the same macro (this is not a requirement...
if the e-mail option works)
* Is there a way to allow each company to choose a custom key
combination?

I have never used Excel macros.

Thanks,
Denise


--
dherne
------------------------------------------------------------------------
dherne's Profile: http://www.excelforum.com/member.php...o&userid=25067
View this thread: http://www.excelforum.com/showthread...hreadid=385859

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Global Macro

VBA macros reside in Workbooks (or special workbooks called Addins)

The workbook or addin must be open in the users machine to run the macro.

Macros in an addin should be supported by creating a menu item to trigger
them.

--
Regards,
Tom Ogilvy

"dherne" wrote in
message ...

I am a programmer but have limited experience with Office Automation.
We need to somehow install a macro for groups of users at different
companies that will sort a spreadsheet based on a certain key
combination. This macro should be available to the users for any new
spreadsheet they create. It also needs to be easy for us to give them
the macro (send via e-mail...?).

* Is there a way to e-mail a macro that self-installs?
* Is there a way to install a macro globally for each company... so all
users at that company use the same macro (this is not a requirement...
if the e-mail option works)
* Is there a way to allow each company to choose a custom key
combination?

I have never used Excel macros.

Thanks,
Denise


--
dherne
------------------------------------------------------------------------
dherne's Profile:

http://www.excelforum.com/member.php...o&userid=25067
View this thread: http://www.excelforum.com/showthread...hreadid=385859



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default Global Macro

dherne,

* Is there a way to e-mail a macro that self-installs?
Yes, but any company worth it's salts will have antivirus software which
will prevent the macro installing.
This is how malicious software (viruses/virii) is propagated!

* Is there a way to install a macro globally for each company... so all
users at that company use the same macro (this is not a requirement...
if the e-mail option works)

If their copy of Excel is on a server, then one installation on the server
will appear in every user's Excel, when they open it.

* Is there a way to allow each company to choose a custom key
combination?

Yes, if you write the macro in such a way as to allow the company's system
manager (password protected) to access the code and change the
combination(s).

Henry


"dherne" wrote in
message ...

I am a programmer but have limited experience with Office Automation.
We need to somehow install a macro for groups of users at different
companies that will sort a spreadsheet based on a certain key
combination. This macro should be available to the users for any new
spreadsheet they create. It also needs to be easy for us to give them
the macro (send via e-mail...?).

* Is there a way to e-mail a macro that self-installs?
* Is there a way to install a macro globally for each company... so all
users at that company use the same macro (this is not a requirement...
if the e-mail option works)
* Is there a way to allow each company to choose a custom key
combination?

I have never used Excel macros.

Thanks,
Denise


--
dherne
------------------------------------------------------------------------
dherne's Profile:
http://www.excelforum.com/member.php...o&userid=25067
View this thread: http://www.excelforum.com/showthread...hreadid=385859



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Global Macro


Thanks, but can you please give me more inforamtion. Is it possible to
have some sort of 'global' macro that will work, even if they create a
new spreadsheet from scratch? If so, how?

For example, if I choose Ctrl-Alt-S to do my custom sorting macro, is
there a way to make it work for all future spreadsheets that are
created?

How can I automatically install this macro for the user?

Thanks,
Deise


--
dherne
------------------------------------------------------------------------
dherne's Profile: http://www.excelforum.com/member.php...o&userid=25067
View this thread: http://www.excelforum.com/showthread...hreadid=385859

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default Global Macro

Write the code in a workbook.xls
than save it as workbook.xla

This is an add-in

--
steveB

Remove "AYN" from email to respond
"dherne" wrote in
message ...

Thanks, but can you please give me more inforamtion. Is it possible to
have some sort of 'global' macro that will work, even if they create a
new spreadsheet from scratch? If so, how?

For example, if I choose Ctrl-Alt-S to do my custom sorting macro, is
there a way to make it work for all future spreadsheets that are
created?

How can I automatically install this macro for the user?

Thanks,
Deise


--
dherne
------------------------------------------------------------------------
dherne's Profile:
http://www.excelforum.com/member.php...o&userid=25067
View this thread: http://www.excelforum.com/showthread...hreadid=385859





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Global Macro

Just to add to Steve's contribution:

http://www.microsoft.com/officedev/index/apps.htm
Distributing Microsoft Excel 97, Word 97, and PowerPoint 97 Solutions (March
3, 1997)

http://www.microsoft.com/exceldev/tips/addins.htm
Protecting the Code in an Add-in


http://msdn.microsoft.com/library/en.../xlcraddns.asp
Creating Add-ins in Microsoft Excel 97

http://support.microsoft.com/?id=167909
XL: Securing Visual Basic Code in Microsoft Excel

http://support.microsoft.com/?id=156942
XL97: How to Create an Add-in File in Microsoft Excel 97

While some where written around the Office 97 timeframe, they are still
applicable for regular addins.

--
Regards,
Tom Ogilvy


"dherne" wrote in
message ...

Thanks, but can you please give me more inforamtion. Is it possible to
have some sort of 'global' macro that will work, even if they create a
new spreadsheet from scratch? If so, how?

For example, if I choose Ctrl-Alt-S to do my custom sorting macro, is
there a way to make it work for all future spreadsheets that are
created?

How can I automatically install this macro for the user?

Thanks,
Deise


--
dherne
------------------------------------------------------------------------
dherne's Profile:

http://www.excelforum.com/member.php...o&userid=25067
View this thread: http://www.excelforum.com/showthread...hreadid=385859



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default Global Macro

Tom,

Your comment is special to me - Thank you!

--
steveB

Remove "AYN" from email to respond
"Tom Ogilvy" wrote in message
...
Just to add to Steve's contribution:

http://www.microsoft.com/officedev/index/apps.htm
Distributing Microsoft Excel 97, Word 97, and PowerPoint 97 Solutions
(March
3, 1997)

http://www.microsoft.com/exceldev/tips/addins.htm
Protecting the Code in an Add-in


http://msdn.microsoft.com/library/en.../xlcraddns.asp
Creating Add-ins in Microsoft Excel 97

http://support.microsoft.com/?id=167909
XL: Securing Visual Basic Code in Microsoft Excel

http://support.microsoft.com/?id=156942
XL97: How to Create an Add-in File in Microsoft Excel 97

While some where written around the Office 97 timeframe, they are still
applicable for regular addins.

--
Regards,
Tom Ogilvy


"dherne" wrote in
message ...

Thanks, but can you please give me more inforamtion. Is it possible to
have some sort of 'global' macro that will work, even if they create a
new spreadsheet from scratch? If so, how?

For example, if I choose Ctrl-Alt-S to do my custom sorting macro, is
there a way to make it work for all future spreadsheets that are
created?

How can I automatically install this macro for the user?

Thanks,
Deise


--
dherne
------------------------------------------------------------------------
dherne's Profile:

http://www.excelforum.com/member.php...o&userid=25067
View this thread:
http://www.excelforum.com/showthread...hreadid=385859





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
Global Macro CAS Excel Discussion (Misc queries) 1 June 28th 07 07:16 PM
Global Macro Bo Rasmussen New Users to Excel 4 September 12th 05 03:48 PM
How do I make a 'global' macro? Colin Higbie Excel Programming 5 November 6th 04 12:52 AM
Can't record Global Macro KathyB Excel Programming 0 June 13th 04 04:17 PM
Global macro insertion CLR Excel Programming 2 October 11th 03 03:40 PM


All times are GMT +1. The time now is 01:03 AM.

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"