Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-08-2020, 12:23 PM
jjoseph jjoseph is offline insert text from a bookmark in a OneDrive file Windows XP insert text from a bookmark in a OneDrive file Office 2016
Novice
insert text from a bookmark in a OneDrive file
 
Join Date: Aug 2019
Posts: 2
jjoseph is on a distinguished road
Default insert text from a bookmark in a OneDrive file

Hi,
I have a formula that inserts text from a bookmark in a separate word document. I originally set it up to read from a document on our file server and it worked great. However, now I would like to move the document with the bookmarks to OneDrive, but I am having trouble figuring out how to reference the OneDrive document in the formula. I tried just replacing the file path with the OneDrive link but it gives me a "Bookmark not defined" error. Any ideas? Thanks for your help.

Original formula: (this one works)


{IF {REF ACOUSTICS} = "TRUE" "{INCLUDETEXT "G:\\***\\SPORTS - SCOPES BY DISCIPLINE.DOCX" ACOUSTICS}" ""}

With OneDrive link: (this one does not work)
{IF {REF ACOUSTICS} = "TRUE" "{INCLUDETEXT "HTTPS://***-MY.SHAREPOINT.COM/:W:/P/***" ACOUSTICS}" ""}
Reply With Quote
  #2  
Old 06-08-2020, 05:43 PM
macropod's Avatar
macropod macropod is offline insert text from a bookmark in a OneDrive file Windows 7 64bit insert text from a bookmark in a OneDrive file Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,370
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

Your INCLUDTEXT field should be something along the lines of:
{INCLUDETEXT "C:\\Users\\jjospeh\\OneDrive\\Documents\\SPOR TS - SCOPES BY DISCIPLINE.docx" ACOUSTICS}
If you open the document on OneDrive, then select the bookmarked range and paste it into the destination document using Paste Special with the 'paste link' option, the resulting LINK field will give the correct filepath.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 06-10-2020, 08:25 AM
jjoseph jjoseph is offline insert text from a bookmark in a OneDrive file Windows XP insert text from a bookmark in a OneDrive file Office 2016
Novice
insert text from a bookmark in a OneDrive file
 
Join Date: Aug 2019
Posts: 2
jjoseph is on a distinguished road
Default

Thank you macropod! The "paste link" worked for me as long as I removed the INCLUDETEXT

{IF {REF ACOUSTICS} = "TRUE" "{ LINK WORD.DOCUMENT.12 "HTTPS://***" "ACOUSTICS" \A \H }" ""}

Your suggestion that references the sync'd C: drive location also worked; however, i assumed it would not work properly for other users utilizing the same document, so I opted for the above.
Thank you for the help.
Reply With Quote
Reply

Tags
bookmark, includetext, one drive



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to insert different sets of text at bookmark depending on sequence of selected check boxes chipper09 Word VBA 0 06-21-2018 01:49 PM
insert text from a bookmark in a OneDrive file Find {text} and insert cross reference from bookmark Slamzor Word VBA 1 12-01-2017 05:12 PM
How to insert text before bookmark ? vince692 Word VBA 6 05-19-2016 05:44 AM
insert text from a bookmark in a OneDrive file Open header to insert text into bookmark Amapola188 Word VBA 3 07-12-2012 05:16 PM
insert text from a bookmark in a OneDrive file VBA to insert Bookmark rockwellsba Word VBA 2 05-31-2011 01:07 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:05 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