+ Reply to Thread
Results 1 to 2 of 2

Run a Macro for a selection

  1. #1
    Registered User
    Join Date
    10-12-2008
    Location
    dubai
    Posts
    4

    Run a Macro for a selection

    I am real novice in VBA and my question may really be dumb for some!
    I am looking to run a marco for a selection range, and the selection range could vary in size.
    The relative reference recorded Macro runs the Macro for a defined number of cells. I would like to run certain Macro, for different ranges of cells.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    chrisham,

    Please read forum rules below and then add the link to the other excel forum where you have also posted this question

    Record your action and post the code (following forum rules below i.e using code tags)



    VBA Noob
    Last edited by VBA Noob; 10-13-2008 at 02:47 AM. Reason: Added request to add link to cross post
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Run macro based on any selection in worksheet
    By Rise&Shine in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2008, 09:16 PM
  2. vba to change macro file name
    By blackstar in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-02-2007, 12:14 AM
  3. Read-only error using Form Button with Assign Macro
    By samf88 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-09-2007, 02:15 PM
  4. country finder lookup macro
    By theghost in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-07-2007, 10:41 PM
  5. Macro - input sheet selection
    By bobboy in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-19-2007, 05:42 PM

Tags for this Thread

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