|
-
Dec 17th, 2010, 09:33 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Office 2003 Favour Request
G'day. I was hoping someone could please do me a small favour. I have office 2007 and I need some info from office 2003.
What I need is for someone with Office 2003 to open a new file in Excel, insert a module, go to Tools > References and add references to Microsoft Outlook 11.0 Object Library, Microsoft Scripting Runtime and Microsoft Word 11.0 Object Library then paste the following code in the module and run it and upload the file to me after the code has been run.
Code:
Sub CheckReferences()
Dim n As Integer
Sheets("Sheet1").Select
On Error Resume Next
Cells(1, 1) = "Name"
Cells(1, 2) = "Description"
Cells(1, 3) = "GUID"
Cells(1, 4) = "Major"
Cells(1, 5) = "Minor"
Cells(1, 6) = "fullpath"
Cells(1, 7) = Application.Version
For n = 1 To ActiveWorkbook.VBProject.References.Count
Cells(n + 1, 1) = ActiveWorkbook.VBProject.References.Item(n).Name
Cells(n + 1, 2) = ActiveWorkbook.VBProject.References.Item(n).Description
Cells(n + 1, 3) = ActiveWorkbook.VBProject.References.Item(n).GUID
Cells(n + 1, 4) = ActiveWorkbook.VBProject.References.Item(n).Major
Cells(n + 1, 5) = ActiveWorkbook.VBProject.References.Item(n).Minor
Cells(n + 1, 6) = ActiveWorkbook.VBProject.References.Item(n).fullpath
Next n
End Sub
(I didn't write this code, the original is to be found at: http://www.ozgrid.com/forum/showthread.php?t=22483 ) - credit where credit is due.
Thank you
The Dragon
-
Dec 17th, 2010, 12:07 PM
#2
Re: Office 2003 Favour Request
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Dec 17th, 2010, 07:05 PM
#3
Thread Starter
Addicted Member
Re: Office 2003 Favour Request
Dear Sid
Thanks for that. Much appreciated. Best wishes for Christmas & have a happy & safe holiday season.
cheers
The Dragon
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|