A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Macro that creates desktop shortcut



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7  
Old November 24th 06, 06:27 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Macro that creates desktop shortcut



Hopefully there's no way to get it executed automatically. Maybe you can
create a *.vbs file, attach that to the e-mail and ask the user to save the
attachment as a file and run it.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --

Am Thu, 23 Nov 2006 02:57:01 -0800 schrieb A1pro:

This seems to do the programatic trick:
Sub CreateShortcut()

On Error Resume Next

Dim wsShell As Object
Dim wsSCut As Object

Set wsShell = CreateObject("WScript.Shell")

DesktopPath = wsShell.SpecialFolders("Desktop") 'Finds Desktop folder

shortcutPath = DesktopPath & "\" & "telewest.lnk" ' adds shortcut name

Set wsSCut = wsShell.CreateShortcut(shortcutPath) ' creates shortcut


With wsSCut
.TargetPath = "http://62.30.31.74" ' this selects iexplorer and

sets
the ip address
.Save
End With

Set wsSCut = Nothing
Set wsShell = Nothing
End Sub

Now I'm trying to think how to distribute it.

Any way to embed this on an email?
or do security issues get on the way?

any help would be appreciated

TIA

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Mail Desktop Shortcut Rob D. Outlook - General Queries 9 August 21st 06 08:42 PM
desktop shortcut for Outlook Calendar MartinY Outlook - Calandaring 1 May 12th 06 01:23 AM
Desktop shortcut for the Address Book? Fuzzy Logic Outlook - General Queries 8 March 29th 06 11:46 PM
Desktop Shortcut for viewing contacts VFQuestion Outlook - Using Contacts 0 January 27th 06 04:52 PM
desktop shortcut for Outlook Calendar Luc Outlook - Calandaring 0 January 19th 06 08:49 PM


All times are GMT +1. The time now is 03:43 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.