TIM COTTE-200 More if you can answer this.

This is Anthony, the guy you answered the CreateObject Excel question for.  It worked great.  Another question though.  How do I Add a data to a cell in VB that would make the Text a Hyperlink.  

ExcelSheet.Cells(1, 1).Value = "\\MyServer"

If I add this to the cell in Excell 2000 it automatically assumes I want a Hyperlink.  If I add it in VB it looks at it as a string.

Thank you again
LVL 1
toys032498Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

toys032498Author Commented:
Edited text of question.
0
TimCotteeHead of Software ServicesCommented:
Here is an example using the same code as before but replacing the "This is column A...." with a pathname and then add the same pathname to itself as a hyperlink.

    ExcelSheet.Cells(1, 1).Value = "\\osiuk008\mes\vb_apps\dde viewer\mesviewer.exe"
    ExcelSheet.Hyperlinks.Add Anchor:=Selection, Address:="\\osiuk008\mes\vb_apps\dde viewer\mesviewer.exe"
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
toys032498Author Commented:
Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.