Results 1 to 2 of 2

That name is already taken. Try a different one

Threaded View

natonstan That name is already taken.... 03-02-2017, 07:13 PM
jeffreybrown Re: That name is already... 03-02-2017, 07:15 PM
  1. #1
    Registered User
    Join Date
    10-28-2014
    Location
    Texas
    MS-Off Ver
    2013
    Posts
    11

    That name is already taken. Try a different one

    I'm having an issue with a piece of code within my macro, I'm getting an error on the following line:

    Sheets.Add.Name = "DkRateVariances"
    Set DKData = ActiveSheet
    myRow = 4
    myCol = 4
    Do Until CADsheet.Cells(2, myCol) = ""
    DKData.Cells(myRow, 1) = CADsheet.Cells(2, myCol)
    myCol = myCol + 1
    myRow = myRow + 1
    The error says 'That name is already taken. Try a different one’ I can't work out why it's trying to create 2 files with the same name, I've even tried changing that sheet name and still get the same error, is there anyway round this?

    Thanks in advance for any help
    Last edited by jeffreybrown; 03-02-2017 at 07:16 PM. Reason: Correct code tags

Thread Information

Users Browsing this Thread

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

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