Advertisement

06.13.2008 at 10:03AM PDT, ID: 23483391
[x]
Attachment Details

Creating a HyperLink from a cell to a worksheet using C#

Asked by jribble in Microsoft Visual C#.Net

Tags: C#

I have written a C# application using VS2005.NET to generate an Excel spreadsheet.  My first worksheet contains an index to the other worksheets and I want to autogenerate a HyperLink using my C# application from cells in the first worksheet to the other worksheets.

I have seen many examples of linking to a web page and have done this using something like this:

worksheet.Hyperlinks.Add(hyperLinkRange, "HTTP:\\www.google.com",Type.Missing, Type.Missing, "Hyperlink Test");

The problem I have is I'm not sure how to reference a worksheet in the same Excel file.



Start Free Trial
[+][-]06.24.2008 at 06:22PM PDT, ID: 21861934

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual C#.Net
Tags: C#
Sign Up Now!
Solution Provided By: katlin924
Participating Experts: 1
Solution Grade: A
 
 
[+][-]06.26.2008 at 09:53AM PDT, ID: 21876665

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.26.2008 at 04:57PM PDT, ID: 21880020

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628