Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Murray
 
Posts: n/a
Default Hyperlink to a template

Hi All,
I have just tested a hyperlink to an Excel template and instead of opening
the file as a normal spreadsheet it opens as a template (xlt). The idea
behind the hyperlink was so that if you hit the hyperlink you will get a
fresh copy of the spreadsheet, not the template itself. Has anyone
experienced this problem and knows of a fix. Running XP Professional and
office 2003.

Thanks
Murray
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

I think that's the way hyperlinks work. The open the file--whatever the
extension.

One option is to just save the workbook as a normal .xls file and mark that file
ReadOnly (using windows explorer). Then when your hyperlink opens the workbook,
the user can't save it as that name and has to save it as a new file.

Another option would be to use a macro (maybe button right near the cell) and
have it create a new workbook based on that template.

That macro could look something like:

Option Explicit
Sub testme()

Dim myCell As Range
Dim testStr As String
Dim newWkbk As Workbook

Set myCell = ActiveSheet.Range("a3")

testStr = ""
On Error Resume Next
testStr = Dir(myCell.Value)
On Error GoTo 0

If testStr = "" Then
MsgBox "Template not available"
Exit Sub
End If

Set newWkbk = Workbooks.Add(template:=myCell.Value)

End Sub



Murray wrote:

Hi All,
I have just tested a hyperlink to an Excel template and instead of opening
the file as a normal spreadsheet it opens as a template (xlt). The idea
behind the hyperlink was so that if you hit the hyperlink you will get a
fresh copy of the spreadsheet, not the template itself. Has anyone
experienced this problem and knows of a fix. Running XP Professional and
office 2003.

Thanks
Murray


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing Data from an Access Database Including a Hyperlink Colum B.C.Lioness Excel Discussion (Misc queries) 0 May 16th 05 05:26 PM
Importing Access File with Hyperlink B.C.Lioness Excel Discussion (Misc queries) 0 April 29th 05 10:13 PM
Removing hyperlink Frank Marousek Excel Discussion (Misc queries) 3 January 12th 05 09:53 PM
How can I extract hyperlink value pat_rick Excel Discussion (Misc queries) 1 January 8th 05 01:17 AM
Template Wizard Addin Program millemj Excel Discussion (Misc queries) 7 December 11th 04 08:32 PM


All times are GMT +1. The time now is 04:52 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"