+ Reply to Thread
Results 1 to 8 of 8

Edit Multiple Excels To Match Master Template (I.E. Table Headers, Sheet Name)

  1. #1
    Registered User
    Join Date
    10-03-2012
    Location
    Near Tampa, Florida
    MS-Off Ver
    | Work: 2007 | Home: 2013 |
    Posts
    25

    Edit Multiple Excels To Match Master Template (I.E. Table Headers, Sheet Name)

    I need to edit about 2,000 excels to match my Master Template. The Master Template contains adds extra columns, removes some columns, and a rename of the sheets. The 2,000 excels should be uniform. Would there be any method of automating this through a VBA? Or is this not possible.
    I can provide any additional details if needed. Thank you for taking a look.
    Attached Files Attached Files

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Edit Multiple Excels To Match Master Template (I.E. Table Headers, Sheet Name)

    Please clarify more.. I am not able to understand what the desired output is..
    Cheers!
    Deep Dave

  3. #3
    Registered User
    Join Date
    10-03-2012
    Location
    Near Tampa, Florida
    MS-Off Ver
    | Work: 2007 | Home: 2013 |
    Posts
    25

    Re: Edit Multiple Excels To Match Master Template (I.E. Table Headers, Sheet Name)

    I apologize. I have around 2,000 excels in which we use to log data. We're updating the template of these logs. Without any excel magic, I would need to enter each log and change them to match our Template.

    Sheet 1 (Summation):
    Swap Column H and I.
    Copy & Paste A1:J1 from the Master Template (Sheet 1) to the other excel.

    Sheet 2:
    Clear column C
    Delete Column I
    Clear Column K (or delete) either or
    Copy & Paste A1:J1 from the Master Template (Sheet 2) to the other excel.

    Rename Sheets
    "Summation" to "INPUT (PROCESSING)"
    "Production" to "OUTPUT (PRODUCTION)"

    I've never tried or even thought of anything like this so I don't even know if it's possible. I figure I might be able to come up with a macro since it's the same steps over and over but as far as making a script to open every excel and execute the macro, I wouldn't know where to start.

    What I'm picturing, sorry if it's absurd, is opening a macro excel. Running a script that says opening 1st workbook, perform the macro to edit the excel, save and close the excel, go to the next excel. Do you believe this is possible?

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Edit Multiple Excels To Match Master Template (I.E. Table Headers, Sheet Name)

    Yes it is very well possible! However I am still unclear on what you are trying to say.

    Let me work around it and give you a solution!!

  5. #5
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Edit Multiple Excels To Match Master Template (I.E. Table Headers, Sheet Name)

    Please create a Module in in Example Workbook and paste the following code.

    Please change the Path of the Master sheet in the code -

    Please Login or Register  to view this content.
    And please let me know if this is what you want??


    Thank You,

    Deep

  6. #6
    Registered User
    Join Date
    10-03-2012
    Location
    Near Tampa, Florida
    MS-Off Ver
    | Work: 2007 | Home: 2013 |
    Posts
    25

    Re: Edit Multiple Excels To Match Master Template (I.E. Table Headers, Sheet Name)

    Sheet 2:
    Column C did not clear
    Row 1 did not copy from the Template. I'm sorry. Not sure if I specified this correctly.
    Everything else worked great.

  7. #7
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Edit Multiple Excels To Match Master Template (I.E. Table Headers, Sheet Name)

    Please see this one.

    The code isnt really best written, however I was slightly in a hurry..

    but will do what you want it to..

    Please Login or Register  to view this content.
    Please let me know if it worked fine!!

    Thank You,

    Deep

  8. #8
    Registered User
    Join Date
    10-03-2012
    Location
    Near Tampa, Florida
    MS-Off Ver
    | Work: 2007 | Home: 2013 |
    Posts
    25

    Re: Edit Multiple Excels To Match Master Template (I.E. Table Headers, Sheet Name)

    I was able to figure out what I needed by disseminating your code and one or two more out there. This is what I came up with which works great.

    I run it in my Template workbook and it opens excels in the specified folder, performs the operations I want it to, saves, closes, and goes on to the next.

    Thanks for your help.

    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)

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