Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
基本上我想做的是:
Select Case test_expression Case condition_1 result_1 Case condition_n result_n End Select
我需要它condition_n,result_n从电子表格中读取,其中condition_1和result_1在列 A 和 B 中。然后有时会将行添加到电子表格中!
condition_n
result_n
condition_1
result_1
感谢您的任何建议!
不知道你想完成什么,但这里是一个尝试
Select Case test_expression Case Sheets(1).Range("A1").Value Dim s as String resultText = Sheets(1).Range("B1").Value 'Now do something with resultText Case condition_n result_n End Select