+ Reply to Thread
Results 1 to 4 of 4

Reference Active Sheet

  1. #1
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Reference Active Sheet

    Hello can the following code be altered so that wherever Sheet 3 is mentioned it refers to the active sheet instead?

    Thank you very much

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,110

    Re: Reference Active Sheet

    Hello XJ,

    You've just about answered your own question!

    Change Sheet3 to ActiveSheet.

    This should allow you to run the procedure on any sheet.

    I hope that this helps.

    Cheerio,
    vcoolio.
    Last edited by vcoolio; 11-02-2018 at 01:55 AM. Reason: Typo

  3. #3
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Re: Reference Active Sheet

    Thank you this way saves me time and also keeps it easier having only one code instead of 8 for my workbook.

  4. #4
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,110

    Re: Reference Active Sheet

    You're welcome XJ.

    I'm glad that I was able to help.

    Cheerio,
    vcoolio.

+ 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. Changing chart reference to active sheet when copied
    By fxmu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-10-2015, 01:04 PM
  2. Macro with reference to active chart on active sheet
    By bhavikpatel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-14-2014, 10:43 AM
  3. [SOLVED] save active sheet in new workbook, naming it as cell value of active sheet
    By arkharova.s in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-18-2014, 06:16 AM
  4. Replies: 4
    Last Post: 09-28-2012, 12:18 PM
  5. [SOLVED] copy active sheet, create new workbook, name new workbook based on cell reference
    By jm0392 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-20-2012, 07:12 PM
  6. Macro to reference sheet other than active - unhide and/or export
    By Dirty Laundry in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2009, 01:00 AM
  7. [SOLVED] Copy from active sheet and paste into new sheet using info from cell in active
    By Ingve in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-23-2006, 06:00 PM

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