+ Reply to Thread
Results 1 to 3 of 3

Calling a variable macro

  1. #1
    Hari Prasadh
    Guest

    Calling a variable macro

    Hi,

    Can I call name of the macro based on a value in an Excel sheet

    Like A1 has "Rename"

    Then in VBA can I write

    Call Range("A1").value

    It doesnt work.

    Thanks a lot,
    Hari
    India



  2. #2
    Tim Williams
    Guest

    Re: Calling a variable macro

    try

    application.run Range("A1").value

    Tim
    --
    Tim Williams
    Palo Alto, CA


    "Hari Prasadh" <excel_hariNOSPAM@hotSPAREMEmail.com> wrote in message
    news:eGtY8dHlFHA.3568@tk2msftngp13.phx.gbl...
    > Hi,
    >
    > Can I call name of the macro based on a value in an Excel sheet
    >
    > Like A1 has "Rename"
    >
    > Then in VBA can I write
    >
    > Call Range("A1").value
    >
    > It doesnt work.
    >
    > Thanks a lot,
    > Hari
    > India
    >
    >




  3. #3
    Hari Prasadh
    Guest

    Re: Calling a variable macro

    Hi Tim,

    Thanks for your help.

    Regards,
    Hari
    India

    "Tim Williams" <timjwilliams at gmail dot com> wrote in message
    news:%23t87MsHlFHA.3544@TK2MSFTNGP15.phx.gbl...
    > try
    >
    > application.run Range("A1").value
    >
    > Tim





+ 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