访问VBA以处理excel ComboBox事件 [英] Access VBA to handle excel ComboBox events
本文介绍了访问VBA以处理excel ComboBox事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我使用以下Access VBA代码在excel电子表格中添加了一个ComboBox。
Hello everyone,
I have added a ComboBox in excel spreadsheet using the following Access VBA code.
展开 | 选择 | Wrap | 行号
推荐答案
你好。
两分。
- 你在哪里实例化Combobox1?
- 当声明类Combobox的变量时,最好使用显式库引用。
你好。
两个点。
- 你在哪里实例化Combobox1?
- 当声明类Combobox的变量时,最好使用显式库引用。
Hello FishVal,感谢您的回复。我更改了代码如下:
1.创建以下Access VBA模块
Hello FishVal, thanks for the reply. I changed the code a little bit as follows:
1. Created the following Access VBA module
展开 | 选择 | 换行 | 行号
我仍然没有看到像
这样的指令
设置eXL.Combobox1 = myOLEobj
eventsXL中还有多个代码行;课程模块不会像你期望的那样工作。
亲切的问候,
鱼
I still don''t see there an instruction like
Set eXL.Combobox1=myOLEobj
There are also multiple code lines in "eventsXL" class module which will not work as you are expecting.
Kind regards,
Fish
这篇关于访问VBA以处理excel ComboBox事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文