+ Reply to Thread
Results 1 to 3 of 3

Macro won't copy to Sheet4 always goes to last sheet in the workbook?

  1. #1
    Registered User
    Join Date
    06-10-2004
    Posts
    22

    Macro won't copy to Sheet4 always goes to last sheet in the workbook?

    All,

    I have the same code for a macro that copies to Sheet3 and does a fine job; however, this ALWAYS copies to the last sheet in the workbook. I'm a newb, but I just can't understand why the one works going to sheet3, but this stinker always goes to the last sheet. TIA

    Brian
    Please Login or Register  to view this content.
    Last edited by Leith Ross; 10-24-2014 at 03:52 PM. Reason: Added Code Tags

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Macro won't copy to Sheet4 always goes to last sheet in the workbook?

    "Sheet4" as you are using it is actually a indexing function. For example Sheets("Sheet4") and Sheet4 are completely different (Technically they could be the same sheet but they are different in approach). If you know your specific sheet name that you want the data applied to it would be best to specify it in this format

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-10-2004
    Posts
    22

    Re: Macro won't copy to Sheet4 always goes to last sheet in the workbook?

    Thanks!!!!

+ 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. macro for copy sheet in another workbook
    By saidul in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-13-2014, 05:03 AM
  2. [SOLVED] macro to copy rows from a sheet in one workbook to a sheet in a different workbook...
    By fredderf81 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-16-2013, 01:36 PM
  3. Replies: 0
    Last Post: 04-26-2013, 03:40 AM
  4. Macro, copy UNLOCKED cell range of sheet in open workbook to workbook template
    By NicksDad in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-31-2012, 11:18 AM
  5. Copy Sheet to another workbook with macro
    By Thaigirl in forum Excel General
    Replies: 13
    Last Post: 06-27-2012, 01:33 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