Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #16  
Old 09-24-2015, 05:12 AM
simogeo simogeo is offline Object Links in Word Windows 7 64bit Object Links in Word Office 2010 64bit
Novice
 
Join Date: Sep 2015
Posts: 10
simogeo is on a distinguished road
Default

macropod : I observed that the macro does not update automatically LINK when they are in Text Box. Is there a way to do so ?



(edit : Sorry, this is not the macro but Word itself which is not able to update the field in text box. Forget my question.)

Thanks
Reply With Quote
  #17  
Old 09-24-2015, 06:27 AM
macropod's Avatar
macropod macropod is offline Object Links in Word Windows 7 64bit Object Links in Word Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Try replacing your textboxes with single-cell tables. You can make those float on the page like textboxes but, because they remain part of the document layer, fields in them should update more readily.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #18  
Old 09-24-2015, 06:36 AM
simogeo simogeo is offline Object Links in Word Windows 7 64bit Object Links in Word Office 2010 64bit
Novice
 
Join Date: Sep 2015
Posts: 10
simogeo is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
Try replacing your textboxes with single-cell tables. You can make those float on the page like textboxes but, because they remain part of the document layer, fields in them should update more readily.
Interesting ! Thanks
Reply With Quote
  #19  
Old 11-10-2015, 10:20 AM
simogeo simogeo is offline Object Links in Word Windows 7 64bit Object Links in Word Office 2010 64bit
Novice
 
Join Date: Sep 2015
Posts: 10
simogeo is on a distinguished road
Default

Me again.

I'm working with Office 2010. When trying to applying your macro I get this error :

Quote:
a document with the name XXX is already open. You cannot open two documents with the same name, even if the documents are in diffferent folders.
To open the second document, either close the document that's currently open, or rename one of the documents.
and then a dialog box mentions a run-time error "6083"

Displaying the debugger highlight the following line :

Code:
.SourceFullName = Replace(.SourceFullName, OldPath, NewPath)
Any help would be welcome again.


I don't know whether it is important or not. I work with .xlsm and .docm files.
Reply With Quote
  #20  
Old 11-10-2015, 02:08 PM
macropod's Avatar
macropod macropod is offline Object Links in Word Windows 7 64bit Object Links in Word Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

That suggests you still have links with the 'automatic update' property applied (aka the \a switch). Check each link under File>Edit Links to Files.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #21  
Old 11-12-2015, 08:28 AM
simogeo simogeo is offline Object Links in Word Windows 7 64bit Object Links in Word Office 2010 64bit
Novice
 
Join Date: Sep 2015
Posts: 10
simogeo is on a distinguished road
Default

Well, I did remove all \a updates but I still get the same error !

Another clue ? Thanks again
Reply With Quote
  #22  
Old 11-12-2015, 01:32 PM
macropod's Avatar
macropod macropod is offline Object Links in Word Windows 7 64bit Object Links in Word Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

But did you check each link under File>Edit Links to Files?

You might also try the registry patch at: https://support.microsoft.com/en-us/kb/970154
For Office 2010 the key is at HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\W ord\Options
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #23  
Old 11-13-2015, 08:39 AM
simogeo simogeo is offline Object Links in Word Windows 7 64bit Object Links in Word Office 2010 64bit
Novice
 
Join Date: Sep 2015
Posts: 10
simogeo is on a distinguished road
Default

I may try this. The problem is that I want to run this macro to deploy this on many computers I don't have control on.

So what if it works on mine but does not on others ? I'd prefer a generic and simple option.

I was also wandering if there was an other way to change links paths into a docx document like with executing a batch command line. Do you have any idea ?


I may also mention that the XLSX file is 40MB big. I don't know if it can explain the issue.
Reply With Quote
  #24  
Old 11-13-2015, 01:47 PM
macropod's Avatar
macropod macropod is offline Object Links in Word Windows 7 64bit Object Links in Word Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by simogeo View Post
I was also wandering if there was an other way to change links paths into a docx document like with executing a batch command line. Do you have any idea ?
That's what the macro does.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #25  
Old 11-16-2015, 02:48 PM
simogeo simogeo is offline Object Links in Word Windows 7 64bit Object Links in Word Office 2010 64bit
Novice
 
Join Date: Sep 2015
Posts: 10
simogeo is on a distinguished road
Default

Hi macropod,

Some news regarding my problem.
It seems that cutting-pasting the folder (containing bot WOrd and Excel files) is ok.
But copy-paste is triggering an error.

Looking at your code (I'm not a VBA guy as you already guessed ;-) ....) I wonder if modifying that part could help.


Code:
' Set the new path. 
' If your files are always in a folder whose path bracnhes off, one or more levels above the current 
' folder, replace the second '0' on the next line with the number of levels above the current folder. 
For i = 0 To UBound(Split(ActiveDocument.Path, "\")) - 0 
  Parent = Parent & Split(ActiveDocument.Path, "\")(i) & "\" 
Next i 
' If your files are in a Child folder below the (new) parent folder, add the Child folder's 
' path from the parent (minus the leading & trailing "\" path separators) on the next line. 
Child = "" 
NewPath = Parent & Child
Should I specify to the macro the level of the new path related to the old path ?
Could you give me a concrete example ? thanks
Reply With Quote
  #26  
Old 11-16-2015, 02:51 PM
macropod's Avatar
macropod macropod is offline Object Links in Word Windows 7 64bit Object Links in Word Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

If both files are always in the same folder, there is no need to modify anything in that macro.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #27  
Old 11-16-2015, 03:07 PM
simogeo simogeo is offline Object Links in Word Windows 7 64bit Object Links in Word Office 2010 64bit
Novice
 
Join Date: Sep 2015
Posts: 10
simogeo is on a distinguished road
Default

Thanks for the quick answer
Could you confirm the bug when trying to copy-paste (in place of moving files) ?
Reply With Quote
  #28  
Old 11-16-2015, 03:14 PM
macropod's Avatar
macropod macropod is offline Object Links in Word Windows 7 64bit Object Links in Word Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

I know of no such bug.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Links need to be Hot links in Bibliography in Word 2010, 2013 synses Word 1 11-23-2013 12:48 AM
Object Links in Word Linking an Excel object into Word cncolom Word 1 03-29-2013 03:01 PM
Problem: object library invalid or contains references to object definitions aligahk06 Office 0 08-19-2010 12:29 PM
How to insert a project into Word as an object? xxsawer Project 0 04-11-2010 04:21 PM
Could not load this object as this object is not present in your computer k.gaurav Office 0 08-17-2009 09:57 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:33 PM.


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