Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 06-25-2018, 06:58 AM
AlanC AlanC is offline Word VBA: Open and work with a different doc from userform? Windows 10 Word VBA: Open and work with a different doc from userform? Office 2016
Novice
Word VBA: Open and work with a different doc from userform?
 
Join Date: Jun 2018
Posts: 4
AlanC is on a distinguished road
Default

Hi Graham,

Thank you for this; it will do what I want. Yes I'm getting the office as a string.

It was the document.add method that I wasn't aware of. I've just a done test where I added a new document and then programmatically added text to it.

The VBA userform is no longer visible as the new document has focus, but since the process is effectively complete once the new document has been created, I can live with that.

Many thanks again,
Alan
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Open Userform once and apply the same selection to multiple documents Formd Word VBA 2 12-12-2017 10:11 AM
Problem with add-ins that don't work that I can't delete b/c Excel, Word, etc won't open bcs Office 3 02-25-2016 03:37 PM
Powerpoint Userform sharing across all open presentations James Kreiner PowerPoint 2 09-24-2014 09:52 AM
Word VBA: Open and work with a different doc from userform? Workaround to have UserForm open from Web Link Kirsti Word VBA 11 08-23-2012 07:05 PM
Word VBA: Open and work with a different doc from userform? Text created in Work 2010- will not open in Word 2007 Ole Sarge Word 1 05-27-2011 03:06 PM

Other Forums: Access Forums

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