Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Where to learn VB Application for Word on Internet

Posted on 2001-09-14
8
203 Views
Last Modified: 2012-06-27
Hi,I am searching for learning VB Application expecially for MS Word that create hyperlinks on word documents. Can somebody help me ?
0
Comment
Question by:Imelda
8 Comments
 
LVL 51

Accepted Solution

by:
Ryan Chong earned 30 total points
ID: 6481839
Hi lmelda,

Some links here:

http://www.learnthat.com/courses/computer/word/

___________________________________

> Insert a hyperlink that goes to another document, file, or Web page:

You can create a hyperlink that goes to an existing file or to a new file. After you've specified a name for the new file, you can choose to open the file for editing immediately or come back to it later. Either way, the file is created for you.

Select the text or drawing object you want to display as the hyperlink, and then click Insert Hyperlink .

(Or press Ctrl+K)


Do one of the following:
To link to an existing file or Web page, click Existing File or Web Page under Link to.

To link to a file that you haven't created yet, click Create New Document under Link to.

Do one of the following:
If you clicked Existing File or Web Page in step 2, locate and select the file you want to link to.

If you clicked Create New Document in step 2, type a name for the new file. You can also specify the path to the new file and choose whether you want to open the new file for editing now or later.

To assign a tip to be displayed when you rest the mouse over the hyperlink, click Screen Tip and then type the text you want. Word uses the path or address of the file as the tip if you do not specify one.


Click OK twice.
Notes

You can quickly create a hyperlink to a Web page without knowing the address. Click Web page to switch to your Web browser, open the World Wide Web page you want, and then switch back to Word.


If you know the address to an existing Web page, you can type it directly into the document. For example, type www.microsoft.com, and Word creates the hyperlink for you.
0
 
LVL 51

Expert Comment

by:Ryan Chong
ID: 6481840
Or you want to create a hyperlink programmically?
0
 

Author Comment

by:Imelda
ID: 6481932
Yes, I want to create a hyperlink programmically because there are a link plus numbers that increasing on next the link.
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 51

Expert Comment

by:Ryan Chong
ID: 6481979
Hi lmelda,

Try this:

Dim Word As Word.Application
Dim Doc As Word.Document


Private Sub Command1_Click()
    Set Word = CreateObject("Word.Application")
    Set Doc = Word.Documents.Add
   
    Word.Selection.TypeText "Hello World"
    Word.Selection.Hyperlinks.Add Anchor:=Selection.Range, Address:="http:\\www.microsoft.com"
    Doc.SaveAs "D:\eee.doc"
    Doc.Close
    Word.Quit
    Set Doc = Nothing
    Set Word = Nothing
End Sub

'Hope will help.
0
 
LVL 51

Expert Comment

by:Ryan Chong
ID: 6482020
Hi,

Here is the example from M$ Word's help:

Add Method (Hyperlinks Collection) Example

This example turns the selection into a hyperlink to the Microsoft address on the World Wide Web.

ActiveDocument.Hyperlinks.Add Anchor:=Selection.Range, _
    Address:="http:\\www.microsoft.com"
This example turns the selection into a hyperlink that links to the bookmark named "MyBookMark" in MyFile.doc.

ActiveDocument.Hyperlinks.Add Anchor:=Selection.Range, _
    Address:="C:\My Documents\MyFile.doc", SubAddress:="MyBookMark"
This example turns the first shape in the selection into a hyperlink.

ActiveDocument.Hyperlinks.Add Anchor:=Selection.ShapeRange(1), _
    Address:="http:\\www.microsoft.com"

'Hope will help.
0
 
LVL 1

Expert Comment

by:ncw
ID: 6482965
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7208405
Hi Imelda,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept ryancys's comment(s) as an answer.

Imelda, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 5

Expert Comment

by:Netminder
ID: 7241216
Per recommendation, force-accepted.

Netminder
CS Moderator
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question