![]() |
|
#1
|
||||
|
||||
![]() Your process is a bit vague but presumably you will get the office (here a string strOffice) from the userform, so something along the lines of: Code:
Dim oDoc As Document Dim strOffice As String Select Case strOffice Case "London" Set oDoc = Documents.Add("c:\path\London templatename.dotm") Case "New York" Set oDoc = Documents.Add("c:\path\NY templatename.dotm") 'etc End Select 'do stuff with oDoc
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
![]() |
|
![]() |
||||
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 |
![]() |
Kirsti | Word VBA | 11 | 08-23-2012 07:05 PM |
![]() |
Ole Sarge | Word | 1 | 05-27-2011 03:06 PM |