Why 'Row' changes to 'row' in Excel VBA

前端 未结 3 464
一个人的身影
一个人的身影 2020-12-07 04:12

For unknow reason my Excel VBA editor changes:
Cells(ActiveCell.Row, 1).Value = MyString
into
Cells(ActiveCell.row, 1).Value = MyString

3条回答
  •  遥遥无期
    2020-12-07 04:44

    I used variable row in VBA of that worksheet. Then I changed the name of the variable row to something else like MyRowName Although there was no such variable as row in VBA anymore, it still kept lower case for that word. As I mentioned above everything worked fine i.e. ActiveCell.row returned what it should for ActiveCell.Row.

    For just aesthetic reasons, I have copied the whole VBA to another worksheet and the bug was crunched. Row returned to Upper case.

提交回复
热议问题