Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-09-2024, 07:21 AM
mister19stick mister19stick is offline Package objects completely broken Windows 10 Package objects completely broken Office 2019
Novice
Package objects completely broken
 
Join Date: Sep 2024
Posts: 3
mister19stick is on a distinguished road
Default Package objects completely broken

EDIT: is this like subdocuments? That is, Microsoft's position is this. "Yes, it's there for historical reasons but it's so embarrassingly broken and useless we only expect you to use it if you're an idiot."

Code releases are done here via inserting the objects in a Word document with instructions and providing the document to the user.

The user then does one of two things; either saves the objects to disk or opens the file into its associated application.

They then follow the instructions.

(Nothing to do with me, just telling you how it is.)

The objects could theoretically be files of any type, but are usually SSIS packages or SQL scripts, thus .dtsx and .sql extensions.

With a great many objects, refreshing them becomes cumbersome, fiddly and tedious.

I'd like to use VBA to auto-refresh every object in a document. That is, overwrite the object in in the document with a fresh one from disk.

The objects are right there in the document, I can read and write their properties, and insert and delete them.

Quote:
ActiveDocument.InlineShapes(i)
ActiveDocument.InlineShapes(i).OLEformat
However, changing any of the properties using VBA breaks something, usually the file association so it no longer opens on double click, or sets the name to a random 8.3 name.

The "Properties" and "Rename Object" menu items are no better.

Can anyone that has experience of this confirm that there is a way to make this work?

Are there other objects I should be using?

Can you point at a resource i could use to learn about this?
Reply With Quote
 

Tags
vba package object



Similar Threads
Thread Thread Starter Forum Replies Last Post
Package objects completely broken Replace Embedded Objects with Linked Objects hicksi Word 3 09-29-2021 07:17 PM
Package objects completely broken Macros to move objects prevents moving same objects with arrow keys BruceM Word VBA 1 03-10-2015 08:20 AM
Package objects completely broken Convert equation objects to inline objects sumjoh Word VBA 1 01-29-2013 08:38 PM
Package for CD missing?? judderbones PowerPoint 1 03-24-2011 08:56 AM
Needed help with MSI Package ahaseeb Outlook 0 01-17-2011 10:19 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:24 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft