Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Create Hyperlink

How can I create new hyperlink with VBA. The path I want to use is:
C:\Test\test.xls

Thanks in advance.

Maperalia
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Create Hyperlink

this will put it in cell a1 on sheet1

Sub test()
With Worksheets("Sheet1")
.Hyperlinks.Add .Range("A1"), "C:\Test\test.xls"
End With


End Sub


--


Gary


"maperalia" wrote in message
...
How can I create new hyperlink with VBA. The path I want to use is:
C:\Test\test.xls

Thanks in advance.

Maperalia



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Create Hyperlink

Gary;
Thanks very much it is working perfectly.

Maperalia

"Gary Keramidas" wrote:

this will put it in cell a1 on sheet1

Sub test()
With Worksheets("Sheet1")
.Hyperlinks.Add .Range("A1"), "C:\Test\test.xls"
End With


End Sub


--


Gary


"maperalia" wrote in message
...
How can I create new hyperlink with VBA. The path I want to use is:
C:\Test\test.xls

Thanks in advance.

Maperalia




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
Need to create an automatic hyperlink [email protected] Excel Discussion (Misc queries) 3 April 1st 10 03:39 PM
How do I create a hyperlink to a cell with the hyperlink function S. Bevins Excel Worksheet Functions 2 July 20th 06 08:06 PM
create a hyperlink in a comment box Vicky Sandvig Excel Discussion (Misc queries) 0 June 13th 06 06:45 PM
How i can create hyperlink with email R.H. Fakhruddin Excel Programming 1 November 14th 05 04:28 AM
How to create a hyperlink in a diagram? Lane CC Laura Excel Discussion (Misc queries) 0 April 13th 05 05:33 PM


All times are GMT +1. The time now is 01:29 AM.

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

About Us

"It's about Microsoft Excel"