+ Reply to Thread
Results 1 to 10 of 10

Change meta data for many documents at once

  1. #1
    Forum Contributor
    Join Date
    04-02-2017
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    405

    Cool Change meta data for many documents at once

    Hi guys,

    Im wondering if its possible to have vba change the meta data for many documents?

    The only way I can think of, is if I have excel open every word document, excel and pdf, make changes and save and close. And im a bit worried about doing that approximately 2000 times in one macro.
    I'd imagine it would take a very long time, unless someone knows a few tricks.


    I don't think I would be able to get excel to update .jpeg metadata like EXIF information


    I'm wondering if anyone knows a better way to do this or has some ideas?

    Thanks,
    Jimmy
    Thanks,

    JimmyWilliams

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Change meta data for many documents at once

    Here's a recent mass replacement:

    Please Login or Register  to view this content.
    to replace all instances of 123Foo with 123Foobar - it's as good as new, only dropped once
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Contributor
    Join Date
    04-02-2017
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    405

    Re: Change meta data for many documents at once

    Hi xladept,

    I'll play around with it, but I don't think that would work for word and pdf or other types of files.



    Please Login or Register  to view this content.
    Don't you mean workbooks? Because the properties within a book's worksheets will all be the same..

    From what I can tell, that would only work with workbooks, what about pdf's and word documents?

    Thanks,

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Change meta data for many documents at once

    Hi Jimmy,

    No, it's worksheets, just as written. And, yes, it's good for just the excel

  5. #5
    Forum Contributor
    Join Date
    04-02-2017
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    405

    Re: Change meta data for many documents at once

    Is there a way to do it for PDFs and other types of documents?

    vba>tools>references...>Adobe? etc

    thanks

  6. #6
    Forum Contributor
    Join Date
    04-02-2017
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    405

    Re: Change meta data for many documents at once

    Also, I'm hoping to do this to many files, not just the few that are open.

    I'll have a look and play around with your idea soon.

  7. #7
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Change meta data for many documents at once

    On both Word and PDF, by googling, they suggest that you convert the PDF to Word and then back to PDF.

    Do you have Adobe? I don't

    And I haven't got the code for the Word conversion although the VBA is similar the naming is strange to me
    Last edited by xladept; 02-18-2018 at 08:52 PM.

  8. #8
    Forum Contributor
    Join Date
    04-02-2017
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    405

    Re: Change meta data for many documents at once

    word vba is a bit different, messes things up a bit.

    what I have for word, almost works, except it doesn't because read and write permissions. kinda works if you use a template document, but even then it's opening changing, saving and closing documents. I was hoping there was a way of doing it with the shell or something?

    Below is what I've got for word:

    Module1:
    Please Login or Register  to view this content.
    ClassModules:
    Please Login or Register  to view this content.

    This Document
    Please Login or Register  to view this content.

  9. #9
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Change meta data for many documents at once

    I wonder whether events are the way to go - not what I envisioned

  10. #10
    Forum Contributor
    Join Date
    04-02-2017
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    405

    Re: Change meta data for many documents at once

    *Bumping*

    Still looking for a good method to do this.
    Thanks,
    Jimmy

+ 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] Gathering Meta Data Issue
    By Scoobster_doo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-25-2017, 11:01 AM
  2. Change orientation several Excel documents
    By linuseinar in forum Excel General
    Replies: 1
    Last Post: 02-21-2017, 09:46 AM
  3. Scrape HTML meta data
    By ck248 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-18-2017, 05:36 PM
  4. Compare two excels - Easy change between various documents
    By orjanmen in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-28-2014, 06:00 AM
  5. Picture links in excel. How to bring up also their meta data also?
    By JPWRana in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2013, 02:08 PM
  6. Getting Meta Tags,
    By ezykiwi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-11-2006, 01:06 AM
  7. Replies: 5
    Last Post: 04-24-2006, 08:35 AM

Tags for this Thread

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