+ Reply to Thread
Results 1 to 2 of 2

Macro for all tabs Headers and Page breaks

Hybrid View

  1. #1
    Registered User
    Join Date
    04-12-2007
    Posts
    57

    Macro for all tabs Headers and Page breaks

    I need to add to an existing macro that creates new tabs based on a criteria, a header. On the left I want the Tab Name and on the right I would like a company logo. I wil have 16 new tabs and I only want it for the 16 tabs to the right of the original information.

    Also, of the 16 new tabs I would like to have the page currently falls on column H, but I prefer all of the new tabs to move the page break to column J.

    I am new at this but am starting to get it to what I need.

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    re: Macro for all tabs Headers and Page breaks

    How is this for starters?

    Sub AddSheets()
      Dim Ccell As Range, Rng As Range
      Set Rng = Range(Worksheets("Companies").Range("A1"), Worksheets("Companies").Range("A65536").End(xlUp))
      For Each Ccell In Rng
        Worksheets.Add After:=Worksheets(Worksheets.Count)
        Worksheets(Worksheets.Count).Name = Ccell
      Next
    End Sub
    Attached Files Attached Files
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

+ 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