Share via

Mac Excel VBA macro cell functions

Anonymous
2018-01-20T01:14:23+00:00

In a Macintosh  Excel VBA macro, what are the statements to: 

Get active.cell Row number

Get active.cell Column number OR

Get active.cell A1 location

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2018-01-20T02:55:40+00:00

    I found this on one of my old macro sheets.

    iCurrRowNr = ActiveCell.Row

    iCurrColNr = ActiveCell.Column

    But now I want to add the name of the active worksheet .

    tWkShName = Sheets(iSheetNr).Name  ' (pg 172)

    How do I get iSheetNr of active worksheet,

    OR how do I get worksheet tWkShName directly?

    Was this answer helpful?

    0 comments No comments