+ Reply to Thread
Results 1 to 3 of 3

Macro to Insert Worksheets and Name The sheets

  1. #1
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Hong Kong
    MS-Off Ver
    Office 365 PC Version
    Posts
    204

    Macro to Insert Worksheets and Name The sheets

    Dear All,

    Enclosed is my workbook with macros.

    This workbook inserts sheets, then renames the sheet and copies a range with a specified format.

    All is working except for 2 problems:

    1) In pasting the range I am unable to paste values, although I am able to paste column width and formats.
    2) If a duplicate worksheet name appears, I get an error message and the macro terminates. Is there a way to skip that and continue on with the other sheets?

    Thanks for any feedback, John
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro to Insert Worksheets and Name The sheets

    I do not know what you are supposed to do when the sheet name already existed, though I have improved the code. You might still get errors.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Hong Kong
    MS-Off Ver
    Office 365 PC Version
    Posts
    204

    Re: Macro to Insert Worksheets and Name The sheets

    Thanks you.

    I will review your code and revert.

    John

+ 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 to Insert a row across a range of worksheets
    By hlpsom1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-16-2014, 01:06 PM
  2. Macro that reads a list of worksheets, selects the sheets and performs a macro
    By JohnPellerin in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-05-2013, 05:04 AM
  3. Replies: 1
    Last Post: 01-19-2012, 04:34 PM
  4. [SOLVED] Insert And Delete Worksheets In The Same Macro
    By AlexRoberts in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-28-2011, 03:42 AM
  5. Macro - Combine/Insert Sheets
    By dugong in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-08-2007, 07:41 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