+ Reply to Thread
Results 1 to 4 of 4

Consolidating tabs

  1. #1
    Registered User
    Join Date
    08-20-2007
    Posts
    16

    Consolidating tabs

    I am using a security program that provides info in PDF form. Each morning it spit out approx 12 pages, which consists of a one long table with 4 colums.

    I then convert that file into excel. The problem I have, is that when I convert to excel, it puts each PDF page on a seperate tab. I need all one one excel page to allow me to dicipher the info. All 12 tabs can be consolidated onto one new sheet, or it can be appended to the data on the first page...I just need one long spreadsheet with all the data.

    Is there a macro i can use to move all the data to one excel page?

    I will need to do this daily, each time with a new file.

    Thanks

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988

    Re: Consolidating tabs

    Link may help

    http://www.rondebruin.nl/copy2.htm

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Consolidating tabs

    My experience with copying and pasting from PDFs is that if you set page scrolling in Adobe (Acrobat or Reader) to continuous, you can select and paste the whole document to a single worksheet in Excel.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    08-20-2007
    Posts
    16

    Re: Consolidating tabs

    I have tried the code on Ron's page, and cant get it to work...then again, not real familiar with VBA.

    This is what I am doing:

    I open the workbook and then open VBA, first code goes in module 1, and the lastCol function into module 2 (the last LastRow and LastCol are 2 different functions right...you only insert 1 of them?) Save both, close VBA and i am off to the races!

    When I run the code I get a list of the tab names, (sheet 1, sheet 2, sheet 3 etc to sheet 30) in Column "H" from row 1 to 30 on the newly created RDB merge sheet!

    Then I tried to chage this:

    'Fill in the range that you want to copy
    Set CopyRng = sh.Range("A1:G1")



    For this:


    'Fill in the range that you want to copy
    Set CopyRng = sh.UsedRange



    and it didnt work at all!

    THanks for your guidance.

    M

+ 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