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

I see that with "Application.MacroOptions", I can set the description
and shortcutkey for a macro, but how do i retrieve the macro description?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Retrieve Macro description


I assume we're talking a VBA macro not an XL4 macro.
for an xl4 macro's it's a property of the nameobject assigned to that
macro.

Ofcourse M$ doesnt make it as easy for VBA :(

for a C++ example see
http://support.microsoft.com/default.aspx?kbid=274680

Which does..

enumerate all Procedures in a VBA project
find the module..
find the line...

This example however does NOT get you the descriptions, just the
procedures...

I've tried it with VBA extensibility and you simple cannot read the
hidden lines :(


If it's a 'VBA macro' (a sub procedure in vba module)
then the name is inserted a a hidden line in the module..

Export your codemodule and open it in a text editor)

you'll see somethin like:
Sub DoDate()
Attribute DoDate.VB_Description = "Inserts a date"
Attribute DoDate.VB_ProcData.VB_Invoke_Func = "d\n14"


Chip Pearson has some (ULTRA complex) code examples of using the
TypeLibraryInfo TLBINF32.DLL ..


maybe that could do the job...
sorry :)



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


R Avery wrote:

I see that with "Application.MacroOptions", I can set the description
and shortcutkey for a macro, but how do i retrieve the macro
description?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Retrieve Macro description

I see that with "Application.MacroOptions", I can set the description
and shortcutkey for a macro, but how do i retrieve the macro description?


This Addin may be of use to you ?
It will list your Macro shortcut keys, Macro Name and Discription.

http://www.xcelfiles.com/GetShortCutKeys.html
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 220
Default Retrieve Macro description

Thanks a lot, both of you. This is great!


Ivan F Moala wrote:
I see that with "Application.MacroOptions", I can set the description
and shortcutkey for a macro, but how do i retrieve the macro description?



This Addin may be of use to you ?
It will list your Macro shortcut keys, Macro Name and Discription.

http://www.xcelfiles.com/GetShortCutKeys.html

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
Macro to retrieve information Unique713 Excel Discussion (Misc queries) 2 November 25th 08 04:05 PM
Retrieve all the dates of XXX without macro Dave F Excel Discussion (Misc queries) 4 January 19th 07 09:41 PM
How can I retrieve macro recording toolbox? cloughie Excel Discussion (Misc queries) 6 February 12th 06 07:33 PM
How to retrieve domain user name in macro Terence Excel Programming 1 August 11th 03 08:32 AM
Macro Questions: Returning multiple results, description of parameter syntax et al. Frederik Romanov Excel Programming 1 July 17th 03 04:42 PM


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