Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Display the Hyperlink Dialog when inserting Hyperlinks

When inserting a hyperlink in VB how do I make it open the Hyperlink Dialog pop up so that the user then can select any file from any location

The code I have at the moment goes like the following

ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:=strFileNam

I could use an input box to get the file name from the user but if it is not in the current directory then they will have to type in the directory path as well which leaves to much room for error.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default Display the Hyperlink Dialog when inserting Hyperlinks

Tommo

Try this to open the dialog.......

Application.Dialogs(xlDialogInsertHyperlink).Show

Cheers
Nigel

"Tommo" wrote in message
...
When inserting a hyperlink in VB how do I make it open the Hyperlink

Dialog pop up so that the user then can select any file from any location.

The code I have at the moment goes like the following:

ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:=strFileName

I could use an input box to get the file name from the user but if it is

not in the current directory then they will have to type in the directory
path as well which leaves to much room for error.




----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! 100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Display the Hyperlink Dialog when inserting Hyperlinks

Thanks Nigel worked a treat


----- Nigel wrote: ----

Tomm

Try this to open the dialog......

Application.Dialogs(xlDialogInsertHyperlink).Sho

Cheer
Nige

"Tommo" wrote in messag
..
When inserting a hyperlink in VB how do I make it open the Hyperlin

Dialog pop up so that the user then can select any file from any location
The code I have at the moment goes like the following
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:=strFileNam
I could use an input box to get the file name from the user but if it i

not in the current directory then they will have to type in the director
path as well which leaves to much room for error




----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---
http://www.newsfeed.com The #1 Newsgroup Service in the World! 100,000 Newsgroup
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =--

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
Display a Custom Dialog Box BHatMJ Excel Discussion (Misc queries) 3 May 21st 08 09:24 AM
Inserting Hyperlinks Andrew Excel Discussion (Misc queries) 3 March 14th 08 10:29 PM
Inserting Buttons as Hyperlinks Melo Excel Worksheet Functions 3 July 12th 07 10:19 PM
How do I display a dialog box that pops up when you first open exc Erin Excel Discussion (Misc queries) 4 June 22nd 05 07:27 PM
How can I prevent Excel 2000 from inserting hyperlinks? RJL Jr. Setting up and Configuration of Excel 1 May 20th 05 12:15 PM


All times are GMT +1. The time now is 12:51 PM.

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"