Are there something like pointers in VBA?
I’m trying to make an excel macro, and want a simple variable to keep track of column count. wst.UsedRange.Columns.Count takes up a lot of space every time I need it, and I’d like to just replace that with a simple name like last_col.
There are but not in a way useful in your situation (or much else beyond special cases), why not
or set a global variable reference to
wst.UsedRange.Columnsand readvar.countas needed.