+ Reply to Thread
Results 1 to 2 of 2

Copying a worksheet and pasting and setting the name

  1. #1
    Registered User
    Join Date
    04-12-2019
    Location
    Dallas
    MS-Off Ver
    2016
    Posts
    64

    Copying a worksheet and pasting and setting the name

    I have a code that copies the worksheet I want, but when it copies over it has "Name (2)". is there a way to make it so you can set the name of the workbook when you copy the previous one? I have this code, and I want to use value set to year2 as the worksheet name. I've tried ".Name = year2" but it comes back with an error.

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    04-12-2019
    Location
    Dallas
    MS-Off Ver
    2016
    Posts
    64

    Re: Copying a worksheet and pasting and setting the name

    I was able to solve this for myself, I will post what I did to anyone else who wants to solve this problem.

    Please Login or Register  to view this content.
    Since I knew the new sheet would be named Master (2) I went ahead and called that sheet and just renamed it using .Name

+ 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. Copying and pasting column to another worksheet
    By chrisellis250 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2019, 05:01 AM
  2. Help copying and pasting worksheet names to another WS
    By krapnek in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-24-2013, 10:16 AM
  3. VBA - Copying and Pasting Into a New Worksheet
    By theblackmansays in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2012, 11:24 AM
  4. VBA code for copying a worksheet and pasting it as a new worksheet in Excel
    By eemiller1997 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-27-2012, 11:56 AM
  5. Copying and Pasting Rows to a different worksheet
    By Coldsteel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-13-2010, 10:34 AM
  6. Problem copying/pasting worksheet
    By rut in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-14-2005, 03:36 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