+ Reply to Thread
Results 1 to 8 of 8

multiple sheets to masterfile (different cells)- VBA

  1. #1
    Registered User
    Join Date
    01-16-2021
    Location
    Belgium
    MS-Off Ver
    office 2016
    Posts
    6

    multiple sheets to masterfile (different cells)- VBA

    Dear all,

    I'm new on this forum and I need your support.
    I will really appreciate it if someone can help me


    I have for 1 week like 50 PDF files that I have to convert to excel, so I found a program that creates 1 excel file with all the sheets.
    now I need some data from each sheet ,to make it easy for you I marked the values that I need in 3 different colors. (see excel in attachment)

    -adress : always in same cell (B8)
    -order number: it depends if there is multiple work in 1 adress there are different order numbers
    -Sap number : it will be in Cell F9/F10

    conclusion : I need for each adress order number(s) and Sap number(s)

    my question: is there any solution to create a masterfile with VBA ?
    I Can't work with colors and sort/filter them later because as I mentioned there are like 50 sheets in 1 week.

    Can someone help me? which function can i use ? or which way will be easiest?

    thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,585

    Re: multiple sheets to masterfile (different cells)- VBA

    For the data uploaded.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-16-2021
    Location
    Belgium
    MS-Off Ver
    office 2016
    Posts
    6

    Re: multiple sheets to masterfile (different cells)- VBA

    Hello Jindon,

    thanks a lot for your quick reply.
    I have an error on this line : .Cells(n, 2).Resize(UBound(a)).Value = a
    I Can't run the VBA code..

    thanks in advance for your reply.

    with kind regards,
    osman

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,585

    Re: multiple sheets to masterfile (different cells)- VBA

    Are you getting error on the file I uploaded?
    If so, no idea, it is working fine for me.

  5. #5
    Registered User
    Join Date
    01-16-2021
    Location
    Belgium
    MS-Off Ver
    office 2016
    Posts
    6

    Re: multiple sheets to masterfile (different cells)- VBA

    Hi,

    yes, it's strange..
    Attachment 713672Attachment 713673

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,585

    Re: multiple sheets to masterfile (different cells)- VBA

    Perhaps, excel version...
    Try
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    01-16-2021
    Location
    Belgium
    MS-Off Ver
    office 2016
    Posts
    6

    Re: multiple sheets to masterfile (different cells)- VBA

    Hi Jindon,

    I tried your first file with a different computer (office365) and it worked.

    thanks a lot for your support have a nice day

    with kind regards,
    osman

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,585

    Re: multiple sheets to masterfile (different cells)- VBA

    The last one should work with any version and error trapping added, so better than the first one.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. [SOLVED] copy the last entering data and show addresses sheets and cells from multiple sheets
    By ABDELFATTA in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-18-2021, 12:27 PM
  2. macro on how to copy data in multiple workbooks into one masterfile
    By jengesmeriz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2018, 11:30 PM
  3. Formula to sum cells across multiple sheets or future sheets
    By dLhx in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-13-2017, 02:46 PM
  4. A Masterfile to summarize multiple workbooks
    By Hokkaido in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-27-2016, 10:24 AM
  5. Replies: 2
    Last Post: 10-14-2014, 06:49 AM
  6. Autocopy to Masterfile from Different sheets
    By Adroel in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-27-2012, 03:40 PM
  7. consolidating multiple workbook in one masterfile.
    By bluerose.12 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-06-2012, 12:58 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