阅读背景:

如何避免在VBA中使用select用于可变单元格范围?

来源:互联网 

I have heard of the dislike for using .select in VBA for excel macros, but I am wondering how my particular goal can be achieved without its use? For example, say there is a cell(used as a header) with the value "Commodity". Beneath it, all cells need to have a VLookup function. However, on each and every iteration of the macro, the column will shift (as new columns are added) and new rows will be added (so that newly added rows will need to have the function added as well). How is it possible to consistently locate this Commodity column and find its lowest unfilled row? It is very simple to do using select:I have heard of the dislike for using .select i




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: