+ Reply to Thread
Results 1 to 3 of 3

Selecting cells based on button location

  1. #1
    Registered User
    Join Date
    06-09-2011
    Location
    Toronto
    MS-Off Ver
    Excel 2007
    Posts
    17

    Selecting cells based on button location

    Hello, a bit of an excel noob here, any help much appreciated!

    I have (automatically generated) buttons that all need to reference the same macro. This macro needs to remove a range of cells based on the button's position... I have come across this code:

    Please Login or Register  to view this content.

    Which works PERFECTLY for the first button created, however I need the button to be copied and pasted several times (a single macro to be able to be called)... does anyone know if this is possible in VBA? I was hoping for something like:

    This.Button.Topleftcell ...

    Again, any help much appreciated!
    Last edited by Jon.R; 08-03-2011 at 03:09 PM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Selecting cells based on button location

    You can assign each of the buttons to this macro:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-09-2011
    Location
    Toronto
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Selecting cells based on button location

    Thanks! Perfect!

+ 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