Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default VB Project References

Dear all,

I encountered a great problem while dealing with the references in
Excel VB project.

I have some operations to perform every month. Since the operation
detail will always change in a unpredicatble way, I decide to backup
the entire directory to some archive locations.

To resolve the XLA absolute path, I write some VBA code to localize the
XLA in the backup directory.

Dim refList As References
Dim ref As Reference

Set refList = oWorkbook.VBProject.References
For Each ref In refList
If ref.Name = "ABC" Then
refList.Remove ref
End If
Next

Set ref = refList.AddFromFile("Location of ABC to be archived.")
MsgBox ref.FullPath

What I encounter is that the AddFromFile() does not work at all if the
addin "ABC" is opened.
Do anyone have idea on that?

Thanks a lot.

Tom

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
Changing cell references in formulas to names and back again. Aaron Excel Discussion (Misc queries) 4 April 25th 06 11:12 PM
How to convert MS Project to MS Excel. I don't have MS Project. Jane Excel Discussion (Misc queries) 1 February 20th 06 10:01 PM
Cannot save Project file as MS Access file Jumpinjackflash Excel Discussion (Misc queries) 1 January 11th 06 11:35 PM
Missing library when running 98 project on 2003 Mary Omond Excel Discussion (Misc queries) 0 May 2nd 05 01:36 PM
Subtotal of Subtotal displays Grand Total in wrong row Thomas Born Excel Worksheet Functions 5 January 6th 05 01:46 PM


All times are GMT +1. The time now is 10:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"