Results 1 to 5 of 5
  1. #1
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Assigning Macro Icons (MSO 2003)

    If I have a macro that calls a program (say, FeedDemon) then the command line would like like

    Shell ("C:WinAppsCommInternetNewsFeedDemonFeedDemon.exe" ), vbNormalFocus

    for instance.

    Is there a way to designate the icon for this macros from the exe file as part of the vbasic command line? Or some other way to have the program default the macro icon to the default program icon?

    Regards,
    Chuck Billow
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Assigning Macro Icons (MSO 2003)

    The Visual Basic code runs when the button is clicked. It has absolutely nothing to do with the way the button looks.

    You'd have to use a suitable graphics program to extract the program icon from the .exe file, copy it to the clipboard and paste it as the button face of the custom toolbar button or menu item in Outlook.

  3. #3
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Re: Assigning Macro Icons (MSO 2003)

    Hans:

    That what I had been doing...

    If you then wanted to port those macros to another machine, the vbaproject.otm file carries the macros, but where are the image pointers stored?

    Regards,
    Chuck Billow
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Assigning Macro Icons (MSO 2003)

    Customized menu and toolbar settings are stored in a file named Outcmd.dat, in the folder Cocuments and Settings<username>Application DataMicrosoftOutlook. Application Data is a hidden folder, so you must show hidden files and folders in Windows Explorer in order to find the file.

    See How to manage .pst files in Outlook 2002 and in Outlook 2003 for more details.

  5. #5
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Re: Assigning Macro Icons (MSO 2003)

    Hans:

    OK, thanks.

    Regards,
    Chuck
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •