Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Saving an IE Favorite from an Excel macro

I'm trying to write some code that will do various tasks as part of
new system implementation. The code needs to run on many PCs wit
various combinations of software installed.

Originally I thought of using VBA in Ms Access to do it and I wrot
code that worked fine. But not all PCs have Access installed. Now I'
thinking of doing with Excel (as all PCs should have Ms Office St
installed).

One of the tasks is to save in the IE "Favorites" folder a favorite t
a particular hyperlink address. In Access I used th
"HyperLink.AddToFavorites" method and it worked just fine. It doesn'
seem to work in Excel.

The address I'm trying to save goes something like this
"http://server.network.net:7781/forms90/f90servlet?config=bfoc&form=issz003.fmx"
Does anyone know how I could do this?

I need not just the code to access the Favorites folder but also th
code to add the new Favorite

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Saving an IE Favorite from an Excel macro

Try something like the following

Dim HL As Hyperlink
Dim WS As Worksheet
Set WS = ActiveSheet
Set HL = WS.Hyperlinks.Add(Range("A1"),
"http://www.cpearson.com", , , "Pearson")
HL.AddToFavorites
HL.Delete
Range("A1").Clear


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"mvelez3 " wrote in
message ...
I'm trying to write some code that will do various tasks as

part of a
new system implementation. The code needs to run on many PCs

with
various combinations of software installed.

Originally I thought of using VBA in Ms Access to do it and I

wrote
code that worked fine. But not all PCs have Access installed.

Now I'm
thinking of doing with Excel (as all PCs should have Ms Office

Std
installed).

One of the tasks is to save in the IE "Favorites" folder a

favorite to
a particular hyperlink address. In Access I used the
"HyperLink.AddToFavorites" method and it worked just fine. It

doesn't
seem to work in Excel.

The address I'm trying to save goes something like this:

"http://server.network.net:7781/forms90/f90servlet?config=bfoc&fo
rm=issz003.fmx".
Does anyone know how I could do this?

I need not just the code to access the Favorites folder but

also the
code to add the new Favorite.


---
Message posted from http://www.ExcelForum.com/



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
Creating a favorite folder in Excel jes78 Excel Discussion (Misc queries) 1 January 26th 10 05:05 PM
saving a new macro in Excel 07 Nat Excel Discussion (Misc queries) 3 June 22nd 09 09:25 PM
Saving Excel using Macro mrbalaje Excel Discussion (Misc queries) 4 April 20th 05 02:32 PM
Saving a Favorite from code Miguel Velez Excel Programming 1 February 6th 04 02:02 AM
Saving an Excel file as a CSV using a Macro doug Excel Programming 2 July 24th 03 03:00 PM


All times are GMT +1. The time now is 01:20 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"