Hyperlink in Journal...

W

wizeguy

I can go
myitem.Body = file:\\\G:\My%20Documents\test.txt
and I get a clicky.

If I go
myitem.HTMLBody = "<A HREF=http://www.georgetown.edu/>linktest</A>"
HTMLBody doesn't seem to work inside a journal entry.

I can create the hyperlink inside an email manually then cut/paste it
into a journal entry and it works just fine. So how do I create a
hyperlinked object inside journal? It appears to support it via the cut
and paste. I'm not sure how to querry an existing journal entry to see
what the copied hyperlink looks like. Any thoughts?
 
S

Sue Mosher [MVP-Outlook]

Correct. JournalItem.Body is the property you need to be using. Both the
file: and http: syntax should work fine.
 
W

wizeguy

So how can I do a link that says "Link" but links to "C:\My
Documents\Test.txt" within a Journal entry? A HREF doesn't seem to work
under JournalItem.Body. I can cut and paste a hyperlink into a journal
item so its possible but how?

Thanks.
 
S

Sue Mosher [MVP-Outlook]

Try:

myItem.Body = "<file://c:\My Documents\Test.txt>"

The angle brackets make it unnecessary to escape the spaces.
 
W

wizeguy

Any way to make it say "Link"?

I really appreciate the help btw... You're awesome for all the help you
provide this group. :)
 
S

Sue Mosher [MVP-Outlook]

Add whatever text you like in front of the link:

myItem.Body = "Link: " & "<file://c:\My Documents\Test.txt>"
 
W

wizeguy

So it doesn't look like I can create the hyperlink in Journal like I
want. Does anyone have the abitlity to create the hyperlink in an email
then cut paste it into a journal entry, then using vba get the body
contents? I'd be curious what format looked like. There might just be a
clue there how to do this. I don't have the ability yet to get the
contents from an existing journal entry.

Thanks again for anyone that can help me out.
 
W

wizeguy

I'd like the only text in the body to be "Link" and when you hover over
it, it would display c:\My Documents\Test.txt, you know like a regular
old hyperlink.

Am I being a pain yet? :)

Thanks Sue
 
S

Sue Mosher [MVP-Outlook]

RTF content doesn't do that.

Also note: The newsgroup interface you are using apparently does not quote
earlier messages in the thread, making your latest message so short on
detail that you risk not getting the answer you're looking for. Please take
the time to quote the original message.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top