ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Delete desktop icon with VBA (https://www.excelbanter.com/excel-programming/299506-delete-desktop-icon-vba.html)

Francis Ang

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

keepITcool

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?




All times are GMT +1. The time now is 01:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com