View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
keepITcool keepITcool is offline
external usenet poster
 
Posts: 2,253
Default Delete desktop icon with VBA

if the icon is a shortcut... just delete the ".lnk" file from the current
user's desktop folder. (or from the "allusers" profile

if the icon is a classed item (like the outlook desktop item) you'll have
to manipulate the registry.

You'll have to be carefull though.. a lot of adminstrators will set
policies on desktop manipulation.


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"?B?RnJhbmNpcyBBbmc=?="
wrote:

Desktop icon can be created with VBA. Does anyone have the VBA code
for deleting a desktop icon?