From: JJ on
Hi

How do I hyperlink a cell to more than one PDF files?

Thanks

JJ
From: Luke M on
You don't/cant. You could hyperlink to the folder containing multiple pdf
files, however.

--
Best Regards,

Luke M
"JJ" <JJ(a)discussions.microsoft.com> wrote in message
news:2D844D88-2892-4A72-8A25-9BFC915B8161(a)microsoft.com...
> Hi
>
> How do I hyperlink a cell to more than one PDF files?
>
> Thanks
>
> JJ


From: Dave Peterson on
Or maybe you could replace the hyperlink with a macro that opens both .pdf
files???

Or (untested), you could hyperlink to a .bat or .vbs file that runs and opens
both files.

JJ wrote:
>
> Hi
>
> How do I hyperlink a cell to more than one PDF files?
>
> Thanks
>
> JJ

--

Dave Peterson
From: JJ on
Dave
can you guide me as to hyperlink with a macro as this seems to be the better
option. I am not good with macros.

tx

"Dave Peterson" wrote:

> Or maybe you could replace the hyperlink with a macro that opens both .pdf
> files???
>
> Or (untested), you could hyperlink to a .bat or .vbs file that runs and opens
> both files.
>
> JJ wrote:
> >
> > Hi
> >
> > How do I hyperlink a cell to more than one PDF files?
> >
> > Thanks
> >
> > JJ
>
> --
>
> Dave Peterson
> .
>
From: Dave Peterson on
If it's just a single cell that has that hyperlink...

Format the cell nicely -- make it look like a hyperlink (but make sure you
remove any existing hyperlink).

Now show the Drawing toolbar
View|Toolbars
in xl2003 menus

Place a rectangle over that cell so that it covers the text you want to make
look like a hyperlink.

You can hide the borders so that it looks pretty later.

Now hit alt-f11 (to get to the VBE, where macros live).
Click on Insert|Module on the VBE's toolbar.

Paste this into the newly opened Code window -- usually on the right hand side:

Option Explicit
Sub LoadPDFs()
ThisWorkbook.FollowHyperlink "C:\my documents\firstfile.pdf"
ThisWorkbook.FollowHyperlink "C:\my documents\secondfile.pdf"
End Sub

You'll have to change the path and filename for both files.

Now hit alt-f11 to get back to excel.

Rightclick on the rectangle and choose Assign macro
Point at LoadPDFs
and click ok

Then test it.

If it works, then it's time to hide the borders of the rectangle (if you want).

Rightclick on the rectangle
choose Format|autoshape
On the Colors and Lines tab, choose "no line" for the line





JJ wrote:
>
> Dave
> can you guide me as to hyperlink with a macro as this seems to be the better
> option. I am not good with macros.
>
> tx
>
> "Dave Peterson" wrote:
>
> > Or maybe you could replace the hyperlink with a macro that opens both .pdf
> > files???
> >
> > Or (untested), you could hyperlink to a .bat or .vbs file that runs and opens
> > both files.
> >
> > JJ wrote:
> > >
> > > Hi
> > >
> > > How do I hyperlink a cell to more than one PDF files?
> > >
> > > Thanks
> > >
> > > JJ
> >
> > --
> >
> > Dave Peterson
> > .
> >

--

Dave Peterson