What's wrong with my above Excel-VBA code?

2019-09-02 15:25发布

Brief description of what i want my VBA to achieve: I'm trying to import data from two Excel spreadsheets, and then compare the data on each list to find the missing elements in each list and then highlight the data row if it is missing.

1条回答
戒情不戒烟
2楼-- · 2019-09-02 15:36

Well there is a certain kind of order required to run Differences. Import_buttonx has to be called before Differences can be called. So you get an out of index because stringOfSheet(1,2) probably ha no value. It's probably nil. You can check while debugging through your code.

查看更多
登录 后发表回答