Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default remove reference via code

Brian,

You need to pass the Remove procedure a valid reference Object:

ThisWorkbook.VBProject.References.Remove _
ThisWorkbook.VBProject.References.Item("Outlook")

HTH,
Bernie
MS Excel MVP

"Brian" wrote in message
om...
Hello

I'm trying to work out how to remove a reference (to Microsoft Outlook
9.0 Object Library) automatically from code when the spreadsheet is
opened. I've found application.VBE.VBProjects(1).References from just
rooting around but can't work out (or find any documentation on) how
to actually remove a reference.

Is this possible? Am i barking up the wrong tree? Please help

Thanks in advance



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
remove password on VBA code Tom Excel Discussion (Misc queries) 1 February 13th 10 06:36 AM
repeat code remove AMIT BHOPAL Excel Worksheet Functions 3 December 25th 09 10:54 AM
Use VB code to remove code in sheet1 WashoeJeff Excel Programming 4 January 25th 04 12:23 AM
Remove VBA code Michi[_2_] Excel Programming 3 January 21st 04 04:18 PM
Remove a reference Niklas[_3_] Excel Programming 8 November 11th 03 10:19 AM


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