+ Reply to Thread
Results 1 to 6 of 6

creating new worksheet tab issue

  1. #1
    Registered User
    Join Date
    02-26-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    40

    Smile creating new worksheet tab issue

    I am trying to copy paste special values on tab "april 2010". That works. Next I'm trying to create a new tab. That works. Then I want to move some data from April 2010 onto the newly created tab. That does not work. It gives me a subscript out of range error at:

    Please Login or Register  to view this content.
    What am I doing wrong with regards to moving the data once the second tab has been created? Also is there anyway to do this without selecting everything? I know that's 'slow'.

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: creating new worksheet tab issue

    You have a space in the worksheet name in one place in the code and no space in the worksheet name in the other:
    OpenOrders
    Open Orders

  3. #3
    Registered User
    Join Date
    02-26-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: creating new worksheet tab issue

    I fixed that but now it fails at:

    [code]wks.Range("A75:ca104").Select[code]

    error msg is select method of range class failed

  4. #4
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: creating new worksheet tab issue

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-26-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: creating new worksheet tab issue

    it doesn't like

    Please Login or Register  to view this content.
    pastespecial method of range class failed

  6. #6
    Registered User
    Join Date
    02-26-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: creating new worksheet tab issue

    never mind. i changed the range to "a1:ca29" and it worked

+ Reply to Thread

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