Run-time error '1004' : Method 'Range' of object'_Global' failed; SIMPLE COPY AND PASTE

妖精的绣舞 提交于 2019-12-02 09:06:34
Range(“F” & RowNum & ":G" & RowNum).Select
      ^ ^            ^  ^
      | |            |  |
    Chr(147)        Chr(34)

The 'quotation marks' around F are character 147. To denote a string value you have to use character 34, like the ones around :G

This usually happens when copy/pasting code from a website. Delete the quotation marks and re-write them manually to solve the issue.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!