+ Reply to Thread
Results 1 to 3 of 3

Automatic sheets from list with content

  1. #1
    Registered User
    Join Date
    02-09-2022
    Location
    Belgium
    MS-Off Ver
    365
    Posts
    2

    Automatic sheets from list with content

    Dears members.

    I am from Belgium and my English is not fantastic, but i wil try to explain my problem.

    I have on sheet 1 ( "Master") a list with numbers in colum A, in colum A to AB i have every cell filled with info.
    Sheet 2 ( "Checklist") i have a template .
    So, i try this vba code i find here on the site.
    What i want to do :
    - make sheet from every number in sheet 1 colum A
    - make hyperlink from every number in sheet 1 colum A
    - copy template in every maked sheet

    So far so good with this code, but ...

    - i can not copy the info in Sheet 1 (Range A to AB ) in every maked sheet
    - I can not make my colum autosized ( every cell is diferent )
    - I can not make a security, if the sheet already excist , he do not make a new sheet or overide it.

    This is de code at this moment :

    Option Explicit
    Sub CreateAndNameWorksheets()
    Dim c As Range
    Application.ScreenUpdating = False
    Sheets("Master").Select
    For Each c In Sheets("Master").Range("A2:A" & Sheets("Master").Range("A" & Rows.Count).End(xlUp).Row)
    c.Select
    Sheets.Add After:=Sheets(Sheets.Count)
    Sheets(Sheets.Count).Name = c.Value

    Sheets("Checklist").Cells.Copy
    ActiveSheet.Paste
    Range("A10").Select
    Application.CutCopyMode = False

    'maken van Hyperlink in Master

    Sheets("Master").Select
    ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:="", SubAddress:=c.Value & "!A2", TextToDisplay:=c.Value
    Next c
    Application.ScreenUpdating = True



    End Sub


    Can somebody help me out ?

    Thx !!

    regards, Phil
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Automatic sheets from list with content

    Show the expected results in the file.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  3. #3
    Registered User
    Join Date
    02-09-2022
    Location
    Belgium
    MS-Off Ver
    365
    Posts
    2

    Re: Automatic sheets from list with content

    Dear kvsrinivasamurthy ,

    I put a second file with the results that i want to achieve.

    thx !
    Attached Files Attached Files

+ 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. Automatic change content of a cell in table using dropdown list
    By jaimes7 in forum Word Programming / VBA / Macros
    Replies: 4
    Last Post: 10-17-2019, 08:26 AM
  2. Automatic borders if itīs content in cells
    By magic2finger in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-27-2016, 04:01 PM
  3. processing a long list and moving content to seperate sheets
    By tsrwebman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-30-2011, 02:58 AM
  4. Automatic converting textual content to value
    By Kowalski in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-20-2010, 06:59 AM
  5. Automatic copying field content from one sheet to another
    By chocolatto in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 12-21-2009, 10:34 PM
  6. dropdown list, multiple sheets, automatic fill
    By roybean in forum Excel General
    Replies: 3
    Last Post: 12-09-2009, 05:39 AM
  7. Automatic list of spesific cellvalues in multiple sheets and files
    By Chromeman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-26-2008, 11:01 PM

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