Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #16  
Old 01-07-2019, 02:20 AM
Yong Xiang Yong Xiang is offline How do I code bookmark globally for different template? Windows 7 32bit How do I code bookmark globally for different template? Office 2016
Novice
How do I code bookmark globally for different template?
 
Join Date: Dec 2018
Posts: 9
Yong Xiang is on a distinguished road
Default

Hello Happy New Year Guessed.
I think I added too many xml mapping so in which I deleted them.
It works! Thank you so much

Now I want to save the file into other location before the userform pop out.
Which is the last step but I can't seem to find a way to make it pop out.


Code:
PHP Code:
Private Sub DocumentSaveAs()

Dim strFilePathstrFileName
strFilePath 
"C:\Users\Public\Documents\"


strFileName = "
put-filename-here.docx"

With Dialogs(wdDialogFileSaveAs)
    .Name = strFilePath & strFileName
    .Show
End With

End Sub 
Reply With Quote
  #17  
Old 01-07-2019, 04:22 AM
Guessed's Avatar
Guessed Guessed is offline How do I code bookmark globally for different template? Windows 10 How do I code bookmark globally for different template? Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,969
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Is your issue with the dialog showing or not navigating it to the strFilePath location?

Your code works for me but only if I supply a valid strFilePath location. What did you want the code to do?
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #18  
Old 02-06-2019, 01:09 PM
Yong Xiang Yong Xiang is offline How do I code bookmark globally for different template? Windows 7 32bit How do I code bookmark globally for different template? Office 2016
Novice
How do I code bookmark globally for different template?
 
Join Date: Dec 2018
Posts: 9
Yong Xiang is on a distinguished road
Default

Hello Happy New Year! I think is okay I just save it manually. And i think you solve all my problem Thank you very much!!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I code bookmark globally for different template? Field Code: Show a value only if bookmark is not empty Cosmo Word 7 08-24-2018 01:46 PM
How do I code bookmark globally for different template? VBA Code to Access Building Block Template in Word 2013 Startup folder rdross51 Word VBA 2 06-01-2016 07:05 PM
Find Bookmark, move to bookmark, execute code, repeat raymm3852 Word VBA 10 04-15-2016 06:21 PM
How do I code bookmark globally for different template? VBA Code in template does not run in new document highrise955 Word VBA 4 03-06-2016 04:48 PM
How do I code bookmark globally for different template? Visual basic code for Word 2003 template KateAus Word VBA 4 09-09-2012 08:40 PM

Other Forums: Access Forums

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