简体   繁体   中英

Excel vba activecell.value as integer

I want to set the value of the active cell as Yaxis2, but I can't find how to do this.

    Dim yaxis2 as integer
    ActiveCell.Value = Yaxis2

This was my attempt, but it didn't work.

如果尝试将其设置为字符串,则需要将其用双引号(“)括起来。

 ActiveCell.Value ="Yaxis2"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM