+ Reply to Thread
Results 1 to 3 of 3

Creating new sheets with names from a range of cells with values eliminating the blanks.

  1. #1
    Registered User
    Join Date
    01-25-2020
    Location
    Kampala, Uganda
    MS-Off Ver
    2019
    Posts
    3

    Creating new sheets with names from a range of cells with values eliminating the blanks.

    I am trying to create new sheets (with names) from values in a range of cells say A1:AZ30 some of which at some point have blanks. The code below can create the new sheets with names (of values in cells) but when the program find a blank it out puts and error and stops. it also creates an unnamed sheet. How do i avoid that? i want it to be able to skip the blanks and continue with the rest of the cells with values.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Kindly help me improve this or give me a better option.

    Also want to be able to automatically add a template/table to every newly created sheet.

    Thank you.

    Colin
    Last edited by Colin Kuteesa; 01-27-2020 at 05:21 AM.

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

    Re: Creating new sheets with names from a range of cells with values eliminating the blank

    Create a sheet called Template that has your table already on it. The code below copies that sheet.

    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 Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Creating new sheets with names from a range of cells with values eliminating the blank

    Please Login or Register  to view this content.
    From template )hidden sheet "templ" as example
    Please Login or Register  to view this content.

+ 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. Creating Range based on Cell Names in other Cells
    By JEWatson in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-16-2016, 05:09 PM
  2. [SOLVED] Copy and paste random cells values from a range to another sheet column with no blanks
    By macquhele in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-17-2015, 06:05 PM
  3. Eliminating blanks from conditional formatting in a range
    By 54ed in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-20-2014, 07:35 PM
  4. Replies: 3
    Last Post: 07-08-2014, 03:10 PM
  5. Help Creating rule or Macro for eliminating values
    By Introspekt in forum Excel General
    Replies: 3
    Last Post: 07-01-2014, 06:32 AM
  6. Eliminating common names while creating one name with summed values
    By nocty in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-25-2010, 04:53 AM
  7. [SOLVED] creating sheets with names from cells
    By masseysmate in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-30-2005, 11:05 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