Hi,
I am looking for some help with VBA syntax to select a range dynamically.
I have included an example in the attached workbook to help explain the problem. This is part of a bigger project.
Essentially, when a name is selected (using SelName), I want to select the range of cells on the selected row that correspond to the CurrentMonth and EndMonth columns.
In other parts of the project, I have been able to select fixed ranges no problem using a combination of Offset and Resize.
However, in this case, the selection needs to work dynamically (especially becuase the CurrentMonth won't be fixed in practice - it will roll forward each month).
I have been experimenting with .column and .row but without any success.
If someone can help me get the syntax right, I would be most grateful.
gtol
Bookmarks