+ Reply to Thread
Results 1 to 4 of 4

Macro to delete set of cells but return to original cell

  1. #1
    Registered User
    Join Date
    02-28-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Macro to delete set of cells but return to original cell

    Hi Guys,

    I'm looking to build a macro that after a certain action a set of cells are deleted but I don't want it to disrupt the user's work flow. Currently I have the following code (below) but after it deletes the specified cells it remains highlighting the cells. Do for example user 1 is makes a change in cell A1 and the code is invoked, I'd like the macro to select the the following cell in this case A2. Thought on how I can achieve this.

    Please Login or Register  to view this content.
    Thanks,
    +HZ
    Last edited by hani9041; 02-29-2012 at 04:28 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Macro to delete set of cells but return to original cell

    you dont have to select.
    Use this

    Please Login or Register  to view this content.
    Regards,
    Khaled Elshaer
    www.BIMcentre.com

    Remember To Do the Following....
    1. Thank those who have helped you by clicking the Star below their post.
    2. Mark your post SOLVED if it has been answered satisfactorily:
    • Select Thread Tools (on top of your 1st post)
    • Select Mark this thread as Solved

  3. #3
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Macro to delete set of cells but return to original cell

    You should be able to simply use
    Please Login or Register  to view this content.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  4. #4
    Registered User
    Join Date
    02-28-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Macro to delete set of cells but return to original cell

    Thank you Khaled and Mordred, works like a charm.
    +HZ

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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