用于在Excel 2013中获取Excel中引用名称列表的vba代码 [英] vba code to get list of reference name in excel in Excel 2013

查看:112
本文介绍了用于在Excel 2013中获取Excel中引用名称列表的vba代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我需要vba代码来获取excel中的参考名称列表。我遇到VBProject.reference.name代码问题。 

I need vba code to get reference name list in excel. i am having problem with VBProject.reference.name code. 

请建议其他一些代码来获取参考名称。

please suggest some other code to get reference name.

谢谢

王子rajan

推荐答案

示例:

Sub ListReferences()
    Dim ref As Object
    For Each ref In ActiveWorkbook.VBProject.References
        Debug.Print ref.Name, ref.Description
    Next ref
End Sub




此宏输出引用列表  used Visual Basic编辑器的立即窗口中的活动工作簿的Visual Basic 项目。


This macro outputs a list of references used by the Visual Basic project of the active workbook in the Immediate window of the Visual Basic Editor.


这篇关于用于在Excel 2013中获取Excel中引用名称列表的vba代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆