View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Thomas[_9_] Thomas[_9_] is offline
external usenet poster
 
Posts: 9
Default Naming the current cell in Excel

I am converting macros from 123 to Excel. The macro needs
to be able to define a range name for the active cell.
Since the active cell can be on any row or in any column
when the macro is called, a fixed reference is not
acceptable. The recorded macro gives me this:
ActiveWorkbook.Names.Add Name:="here",
RefersToR1C1:="Bills!R29C1"
How can I modify this to be the current active cell?