Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default Hyperlink 4 Opening More Than 1 File.

Hi friends,

Any idea how to write up a Hyperlink in excel, which, when clicked, opens up
two files?

All help is appreciated!

Thanx!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Hyperlink 4 Opening More Than 1 File.

Using VBA, the hyperlink jump can be intercepted by a macro and the macro can
open any number of hyperlinks.
--
Gary''s Student - gsnu200755


"FARAZ QURESHI" wrote:

Hi friends,

Any idea how to write up a Hyperlink in excel, which, when clicked, opens up
two files?

All help is appreciated!

Thanx!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default Hyperlink 4 Opening More Than 1 File.

Thanx brother,

Can you give me a sample code, for example Cell(A1), when clicked, opens
C:\A.xls and C:\B.xls

By the way can one use the Hyperlink() function for two?

"Gary''s Student" wrote:

Using VBA, the hyperlink jump can be intercepted by a macro and the macro can
open any number of hyperlinks.
--
Gary''s Student - gsnu200755


"FARAZ QURESHI" wrote:

Hi friends,

Any idea how to write up a Hyperlink in excel, which, when clicked, opens up
two files?

All help is appreciated!

Thanx!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Hyperlink 4 Opening More Than 1 File.

I'll update this post later today
--
Gary''s Student - gsnu200755


"FARAZ QURESHI" wrote:

Thanx brother,

Can you give me a sample code, for example Cell(A1), when clicked, opens
C:\A.xls and C:\B.xls

By the way can one use the Hyperlink() function for two?

"Gary''s Student" wrote:

Using VBA, the hyperlink jump can be intercepted by a macro and the macro can
open any number of hyperlinks.
--
Gary''s Student - gsnu200755


"FARAZ QURESHI" wrote:

Hi friends,

Any idea how to write up a Hyperlink in excel, which, when clicked, opens up
two files?

All help is appreciated!

Thanx!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Hyperlink 4 Opening More Than 1 File.

In cell A1 insert a hyperlink that jumps to cell A1. Clicking this will not
take us to anywhere new, just back to A1. It will however trip the
FollowHyperlink event. In the worksheet code area insert the following macro:

Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
' gsnuxx
Set r = ActiveCell
If r.Address < "$A$1" Then Exit Sub
Dim s As String
Application.EnableEvents = False
s = "file:///C:\A.xls"
ActiveWorkbook.FollowHyperlink (s)
s = "file:///C:\B.xls"
ActiveWorkbook.FollowHyperlink (s)
Application.EnableEvents = True
End Sub

The macro first makes sure we are at cell A1. It then does hyperlinks to
A.xls and B.xls
--
Gary''s Student - gsnu200755


"FARAZ QURESHI" wrote:

Thanx brother,

Can you give me a sample code, for example Cell(A1), when clicked, opens
C:\A.xls and C:\B.xls

By the way can one use the Hyperlink() function for two?

"Gary''s Student" wrote:

Using VBA, the hyperlink jump can be intercepted by a macro and the macro can
open any number of hyperlinks.
--
Gary''s Student - gsnu200755


"FARAZ QURESHI" wrote:

Hi friends,

Any idea how to write up a Hyperlink in excel, which, when clicked, opens up
two files?

All help is appreciated!

Thanx!

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
warning when opening hyperlink eugene Excel Discussion (Misc queries) 4 October 30th 07 02:42 PM
Problem opening hyperlink to PDF file in Excel 2003 helenyw New Users to Excel 2 December 7th 06 01:41 PM
Hyperlink to jpg only opening in explorer Ben J Excel Discussion (Misc queries) 1 September 30th 05 07:44 PM
Hyperlink not opening nikhilkaran Excel Discussion (Misc queries) 0 June 14th 05 01:16 PM
Hyperlink opening program Daan64 Excel Discussion (Misc queries) 0 March 26th 05 08:35 AM


All times are GMT +1. The time now is 11:48 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"