如何使用宏将数据从一个excel加载到另一个excel [英] How to load the drop down with data from one excel to another using macros

查看:873
本文介绍了如何使用宏将数据从一个excel加载到另一个excel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Code Project读者,



我遇到了一个有趣的问题,我无法找到解决方案.. :)



我有数据是excel(比如说Excel-A工作簿),必须在另一个excel(比如Excel-B工作簿)的下拉列表中填充。



请告诉我使用VB脚本完成此过程的方法。



提前致谢:)

Hi Code Project readers,

I have come across one interesting problem which i couldn''t find solution.. :)

I have data is an excel(say Excel-A Workbook) which has to be populated in the dropdown of another excel (say Excel-B Workbook).

Please tell me the ways i can do this process using VB script.

Thanks in advance :)

推荐答案

在VBA中你会使用类似
In VBA you would use something like
ComboBox1.ListFillRange = "''[Excel-A.xls]Sheet1''!


A


1:


这篇关于如何使用宏将数据从一个excel加载到另一个excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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