+ Reply to Thread
Results 1 to 1 of 1

VBA Operations on Publisher Documents Executed in Excel

  1. #1
    Registered User
    Join Date
    10-10-2012
    Location
    Utah, USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    VBA Operations on Publisher Documents Executed in Excel

    I am aggregating and parsing a good deal of data in excel spreadsheets and I'm working up an automated reporting system that exports data to preformatted Publisher documents. Since this macro will be given to others to use, I need to ensure that it works properly with its partner files no matter what. It is possible that after the first instance of my macro, a user could create their own publisher document, at which time that new document would become the Publisher.Applicaiton.ActiveDocument object.

    Word VBA has a command that allows one to specify a document and activate it; Word.Application.Documents("DocumentName.doc").Activate, however I have not had much luck finding an equivalent command in Publisher's library.

    Is there a command that enables me to define in absolutely certain terms which Publisher document is active? If there is not, is there a way to assign a Publisher document a specific variable such that I am able to operate on it whether or not it is the ActiveDocument?

    http://i.imgur.com/rk2Suux.png

    This is basically the logic flow of what I'm trying to assemble here, again so that there is a 100% guarantee that the files I want acted on are the ones acted on.

    I'm still pretty new at VBA, so thanks for the assistance.

    Cheers
    frail
    Last edited by theunfrailhale; 09-09-2016 at 10:10 AM.

+ 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. convert all 97-2003 excel documents to macro enabled documents on server
    By viperisback in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-23-2013, 09:06 AM
  2. Copying from Excel and Pasting to Publisher
    By dkim.ags in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-04-2013, 01:43 PM
  3. From Excel to Publisher
    By kidden6968 in forum Excel General
    Replies: 2
    Last Post: 03-03-2011, 10:52 PM
  4. Linking Excel to Publisher
    By dwf4646 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-07-2010, 01:40 AM
  5. export data from excel to publisher
    By jimb0693 in forum Excel General
    Replies: 1
    Last Post: 11-06-2009, 12:35 PM
  6. Matching publisher code with the publisher
    By bearaman in forum Excel General
    Replies: 2
    Last Post: 03-19-2008, 01:13 PM
  7. Copying from Excel - pasting in Publisher
    By vman252 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-19-2006, 08:03 PM
  8. excel documents won't open from my documents folder
    By Paul1961 in forum Excel General
    Replies: 2
    Last Post: 01-15-2006, 01:35 PM

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