Assigning the value of a worksheet cell to a constant

后端 未结 3 1599
情歌与酒
情歌与酒 2020-12-10 09:24

I am trying to assign the value of a worksheet cell to a constant variable in a VBA macro. The logic behind that action is that the end user is supposed to enter the current

3条回答
  •  萌比男神i
    2020-12-10 09:52

    From help: You can't use variables, user-defined functions, or intrinsic Visual Basic functions (such as Chr) in expressions assigned to constants.

    In your case you have to use a variable.

提交回复
热议问题