Results 1 to 3 of 3

VBA code to go back to previous sheet.

Threaded View

ismafoot VBA code to go back to... 10-12-2018, 06:48 PM
xladept Re: VBA code to go back to... 10-12-2018, 07:47 PM
xladept Re: VBA code to go back to... 10-12-2018, 10:08 PM
  1. #1
    Registered User
    Join Date
    05-24-2018
    Location
    Canada
    MS-Off Ver
    Windows 7
    Posts
    35

    VBA code to go back to previous sheet.

    Hi,

    I have the following code:

        ActiveSheet.Select
        ActiveSheet.Copy After:=ActiveSheet
        Range("C8:D38,H8:I38,M8:N38,R8:S38,W8:X38,AB8:AC38,AG8:AH38,AL8:AM38").Select
        Selection.ClearContents
        ActiveSheet.Range("A1").Select
    I would like to go back to the sheet that was active (i.e the sheet that was copied).
    Last edited by jeffreybrown; 10-12-2018 at 06:53 PM. Reason: Please use code tags!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] VBA Code for Going Back to Previous Active Cell!
    By Rajeshkumar R in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-18-2017, 03:06 PM
  2. Go back to previous sheet
    By kennonp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-26-2017, 02:15 PM
  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. 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
  6. Hyperlink refers back to previous sheet?
    By simonwilliams in forum Excel General
    Replies: 8
    Last Post: 12-09-2009, 07:23 AM
  7. After copying in Macro - come back to previous sheet
    By JK1234 in forum Excel Programming / VBA / Macros
    Replies: 35
    Last Post: 09-30-2008, 04:39 AM

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