+ Reply to Thread
Results 1 to 4 of 4

VBA Code for Going Back to Previous Active Cell!

  1. #1
    Forum Contributor
    Join Date
    01-07-2012
    Location
    Bangalore
    MS-Off Ver
    Office 365
    Posts
    368

    VBA Code for Going Back to Previous Active Cell!

    Dear Friends,

    Need your support on subjected Query: -

    Please refer below code which is working completely fine for me, Except where Red Highlighted!!!

    ActiveCell.Row & ActiveCell.Column goes to next Row or next Column based on User Press Tab or Enter Respectively after entry in a current cell!

    Requesting you to provide your valuable suggestion, How to Select previous active cell in both the cases, so that it extracts right value from “Data” sheet and paste in “LogDetails” sheet!

    Please Login or Register  to view this content.
    Thanks & Regards,
    Rajeshkumar R
    Last edited by Rajeshkumar R; 10-18-2017 at 03:08 PM. Reason: Query Resolved

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: VBA Code for Going Back to Previous Active Cell!

    Have you tried using Target instead of ActiveCell?
    If posting code please use code tags, see here.

  3. #3
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: VBA Code for Going Back to Previous Active Cell!

    Hi Rajeshkumar R,

    maybe use Target instead of ActiveCell

  4. #4
    Forum Contributor
    Join Date
    01-07-2012
    Location
    Bangalore
    MS-Off Ver
    Office 365
    Posts
    368

    Re: VBA Code for Going Back to Previous Active Cell!

    Dear Norie ,

    Thank You So much for your instant Response, Your suggestions met my Requirement!

    Regards,
    Rajeshkumar R

+ 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. [SOLVED] Highlight active row but after leaving it give its previous color back
    By ImranBhatti in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-18-2017, 10:36 AM
  2. Changing Background Color for Active Cells, then back to Previous Color...
    By TMCinDC in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-13-2016, 11:35 AM
  3. Go back to previous active sheet
    By gopal baheti in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-02-2014, 09:43 PM
  4. [SOLVED] back to previous active sheet ?
    By Lukael in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2014, 04:45 PM
  5. [SOLVED] Code to detect previous active workbook instead of current active workbook
    By kosherboy in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-25-2014, 01:58 AM
  6. [SOLVED] Go back to previous active sheet (Excel 2007)
    By JawD in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-09-2012, 08:00 AM
  7. VBA code to open next sheet or go back to previous
    By ABSTRAKTUS in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-14-2010, 07:21 AM

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