Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default How can I create a URL with link using the VBA form.

I have created a form for user entry to add a record. The form consist
of a column which allows user to enter a URL of a web site. The value
can be inserted to the cell successfully, however, the url is just
displayed as a text with a link. So I want to ask how can I create the
link automatically?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default How can I create a URL with link using the VBA form.

One way is to add the string as part of an =hyperlink() formula:

Say they type www.ms.com (no http://).

then this would work:

Worksheets("sheet1").Range("a1").Formula _
= "=hyperlink(""http://" & myForm.TextBox1.Value & """)"




Daniel wrote:

I have created a form for user entry to add a record. The form consist
of a column which allows user to enter a URL of a web site. The value
can be inserted to the cell successfully, however, the url is just
displayed as a text with a link. So I want to ask how can I create the
link automatically?

Thanks


--

Dave Peterson

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
Link To Form Tools amjad_bang Links and Linking in Excel 1 July 18th 10 03:10 PM
I am trying to create a form in Excel. In my form I want to be abl AngelaD Excel Discussion (Misc queries) 2 January 5th 07 03:16 PM
How to create a form to insert a hyerlink.VBA code to create a for karthi Excel Discussion (Misc queries) 0 July 5th 06 11:26 AM
How to create the URL with link using the VBA form input in excel? Daniel[_14_] Excel Programming 0 August 29th 04 08:06 AM
VB form link Kerry Crofts Excel Programming 1 May 24th 04 11:49 PM


All times are GMT +1. The time now is 02:28 PM.

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"