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

前端 未结 3 476
一个人的身影
一个人的身影 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:55

    VBA isn't case sensitive, so I wouldn't lose too much sleep over it. The editor tries to convert all of the variable cases to however it was dimmed. Most likely the ActiveCell definition was screwed up somehow.

提交回复
热议问题