+ Reply to Thread
Results 1 to 7 of 7

Execute Macros through Hyperlinks.

Hybrid View

  1. #1
    Tim Williams
    Guest

    Re: Execute Macros through Hyperlinks.

    >may I just need to wrtie the name of the macro in place of MsgBox function.
    Yes - that's all you need to do
    ....
    Case "whatever": MacroName
    ....

    Tim
    --
    Tim Williams
    Palo Alto, CA


    <saddat@gmail.com> wrote in message
    news:1137536320.917647.44220@g43g2000cwa.googlegroups.com...
    > thanks Tim for your reply,
    >
    > could you also help me out and tell me how do I call the Macro. >
    > thanks,
    >
    > Saddat Sarfraz
    > (Saadi)
    >




  2. #2
    saddat@gmail.com
    Guest

    Re: Execute Macros through Hyperlinks.

    Sorry to trouble you again.

    I am trying to run the command but nothing is happaning. I tried with
    Macro as well as MsgBox Function, nothing is working.


  3. #3
    Tim Williams
    Guest

    Re: Execute Macros through Hyperlinks.

    Show the exact code which is not working.
    What does it do instead of working?

    tim

    --
    Tim Williams
    Palo Alto, CA


    <saddat@gmail.com> wrote in message
    news:1137537988.806480.147830@g43g2000cwa.googlegroups.com...
    > Sorry to trouble you again.
    >
    > I am trying to run the command but nothing is happaning. I tried with
    > Macro as well as MsgBox Function, nothing is working.
    >




  4. #4
    Toppers
    Guest

    Re: Execute Macros through Hyperlinks.

    Hi,
    This worked:

    Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)

    Select Case ActiveCell.Address

    Case "$D$8": MyMacro
    Case "$D$9": MsgBox "call a different macro"

    End Select

    End Sub

    Sub MyMacro()
    MsgBox "MyMacro called"
    End Sub


    HTH

    "saddat@gmail.com" wrote:

    > Sorry to trouble you again.
    >
    > I am trying to run the command but nothing is happaning. I tried with
    > Macro as well as MsgBox Function, nothing is working.
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1