ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Referncing the current cell name in an Excel MACRO (https://www.excelbanter.com/excel-discussion-misc-queries/121894-referncing-current-cell-name-excel-macro.html)

Doug

Referncing the current cell name in an Excel MACRO
 
Hi there,

Pelase can you tell me how to reference the currect cell name in a macro.
Not the cell value, but the actual cell name (E.g. AB3). I have a loop
through a range of cell and want to know which cell I am current in. See code
below

For Each c In Worksheets("Calc4").Range("E3:CV3").Cells

I need to know where I am between E3 and CV3 by referring programatically to
the cell name (E.g. Cell AB3)

Thanking you
Doug

JMB

Referncing the current cell name in an Excel MACRO
 
c.address


"Doug" wrote:

Hi there,

Pelase can you tell me how to reference the currect cell name in a macro.
Not the cell value, but the actual cell name (E.g. AB3). I have a loop
through a range of cell and want to know which cell I am current in. See code
below

For Each c In Worksheets("Calc4").Range("E3:CV3").Cells

I need to know where I am between E3 and CV3 by referring programatically to
the cell name (E.g. Cell AB3)

Thanking you
Doug



All times are GMT +1. The time now is 03:43 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com