+ Reply to Thread
Results 1 to 3 of 3

VBA Create Sheets Excel 2013 Issue

  1. #1
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    VBA Create Sheets Excel 2013 Issue

    Hi, I wonder whether someone may be able to help me please.

    I'm using the code below to create sheets with the sheet name derived from a list of names. In addition, the code copies pertinent data from the 'Source' sheet to the relevant 'Destination' sheet.

    Please Login or Register  to view this content.
    I've been using this code in Excel 2003 at work, but when I've tried to run this through version 2013 despite saving the file as a '.xls', I receive the following error: 'Run time error '1004': We couldn't do this for the selected range of cells. Select a single cell within a given range of data then try again.' Debug then highlights this line as the cause:
    Please Login or Register  to view this content.
    Could someone perhaps tell me where I'm going wrong and how I may overcome this.

    Many thanks and kind regards

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: VBA Create Sheets Excel 2013 Issue

    I'm not sure what the problem is. I don't have the 2013 version.
    As a guess, try resetting any filtered rows before using the advanced filter. There may be a conflict if Autofilter was left on or something. It couldn't hurt.
    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    Re: VBA Create Sheets Excel 2013 Issue

    Hi @AlphaFrog, thank you for taking the time to reply to my post and for the putting the proposed solution together.

    Unfortunately, I'm still receiving the same error message, but rather than me continue to work on this at home, when I go back to work tomorrow, I'll check just to make sure I'm not missing anything else from the script. I will of course let you know how I get on.

    All the best and kind regards

+ 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. [SOLVED] Create new workbook, then REFERENCE it, Excel 2013
    By rbrian in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-02-2013, 09:09 AM
  2. [SOLVED] Excel 2013 issue with text formatting
    By Sthlm in forum Excel General
    Replies: 7
    Last Post: 10-23-2013, 01:52 AM
  3. Compatibility issue with Excel 2013
    By kinokino in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-02-2013, 04:17 AM
  4. Excel 2013 issue generating report
    By mwittman in forum Excel General
    Replies: 0
    Last Post: 08-08-2013, 05:11 PM
  5. Macro issue may have when upgrade excel from 2003 to 2013
    By lhollis in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-30-2013, 03:21 AM

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