+ Reply to Thread
Results 1 to 4 of 4

VBA Code to Return to last modified Cell.

  1. #1
    Registered User
    Join Date
    03-25-2017
    Location
    Dubai
    MS-Off Ver
    365 ProPlus
    Posts
    42

    Question VBA Code to Return to last modified Cell.

    Hi guys,

    Need your help. I have a sheet with advance filter. when i enter criteria and enter i want the cell return back to last active cell.
    consider, A1:b5 is the criteria. b1:b5 the range i enter the data and hit enter.
    For example i select B2 and type by criteria and hit enter (or clicke another cell),it will go to b3.
    I want excel to go back to B2.

    I try offset "ActiveCell.Offset(-1, 0).Select"

    When cell selection is a2 excell cant go up further and give an error (application defined error).

    Please help.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: VBA Code to Return to last modified Cell.

    Display the Excel Options dialog box.

    Select File and then Options.

    At the left of the dialog box click Advanced
    Make sure the "After Pressing Enter Move Selection" check box is NOT selected.
    Click OK.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    03-25-2017
    Location
    Dubai
    MS-Off Ver
    365 ProPlus
    Posts
    42

    Re: VBA Code to Return to last modified Cell.

    Thank you very much for fast reply. it solved my issue.

    I wonder, can it be done by a code.

    Will it effect my other workbooks (changing the advance option).

    Thank you again.

  4. #4
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: VBA Code to Return to last modified Cell.

    At the beginning of the code, use
    Please Login or Register  to view this content.
    and at the end set it back to True

+ 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. Need help with a slightly modified Internal Rate of Return calculation
    By Sandeep6699 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-11-2016, 12:55 PM
  2. Find latest modified folder and return path to cell
    By dave1983 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-28-2014, 05:27 AM
  3. Return to the previously modified cell
    By Mtotheic in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-14-2014, 05:03 PM
  4. Code to update cell with current date & time when other cells are modified
    By gjtbackwards in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-12-2014, 07:54 PM
  5. Modified VLOOKUP function to return value and cell formatting
    By Cheshire in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-18-2012, 08:23 PM
  6. Return the last modified date of a hyperlink.
    By Teknoslasher in forum Excel General
    Replies: 0
    Last Post: 11-27-2011, 10:10 PM
  7. Function to return last modified file
    By dissonanceUS in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-05-2009, 05:57 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