Open word template file

dirtychinchilla

Board Regular
Joined
Jun 21, 2013
Messages
234
Morning all,

I'm having some trouble with trying to get a template file to open from an excel link.

I have a word document template, which is basically a blank quote sheet. I want this document to open, but if I use a hyperlink it doesn't create a copy like a template normally would, but you end up editing the actual template.

So, I think that I need a macro here, but am really clueless as to what to do. I've had a good search but have just been confused, so any help would be much appreciated.

Thanks in advance,

dirtychinchilla
 
You are indeed getting somewhere, weird behaviour though! Would it be possible for you to give me code for saving as a new name?

Thanks so much for your help
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
that just because am new at this forum thing need to get the experience.


try the below

Code:
Private Sub CommandButton1_Click()
'existing file as New template
Set word = CreateObject("word.Application")
word.Documents.Add Template:= _
        "S:\Cosmetics Merchandise Planning\Ian\SQL Queries.doc", _
        NewTemplate:=True, DocumentType:=0
With word
.Visible = True
.ActiveDocument.SaveAs2 Filename:="C:\Users\" & "Name" & " " & Format(Date, "ddmmyyyy") & ".doc"  'you may want to change this
End With
End Sub


no problem at all
 
Upvote 0

Forum statistics

Threads
1,214,938
Messages
6,122,346
Members
449,080
Latest member
Armadillos

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top