I think this is supposed to be a simple one, but I've looked through a lot of
vba examples
and must be overlooking the obvious. I've been lurking in this group for a while
hoping to
find an answer or clue.
I have a workbook with multiple worksheets that I update daily. I have oodles of
named
ranges and macros making this task less time-consuming and keeping me from
making too
many mistakes. I have quite a few macros that are as simple as this:
Sub PasteRMRegFunc()
Selection.Formula = "=VLOOKUP(D1448,RMRegArray0710,8,FALSE)"
End Sub
If my selected cell is on row 2038, then I manually type 2038 in place of the
1448. Then I
manually replace 0710 to yesterday's date of 0718.
How can I modify my macro to do the above for me so the macro sets the formula
of the
selected cell to one that is good to go?
I'd like a macro that would create a named range for me based on the selected
cells. The
first part of the named range is always the same, the second part is yesterday's
date (minus
the yyyy). Is this possible with VBA without user input or action (Other than
selecting a cell/
range and activating the macro, of course)?
Is it possible to create a new workbook that lists the name of every named range
in the
active workbook?
Last question. Can I use VBA to copy an entire named range to a different
worksheet or
workbook with the destination being the active cell?