掌握了excel宏开发,开心一下

admin6年前IT技术1619

步骤
1.保存为支持宏命令的excel格式
2.先录制,
3.把重复的操作用for to next的语句段写出来

案例如下:
Sub Macro5()
For i = 9 To 10073
    Range("I" & i).Select
    ActiveCell.FormulaR1C1 = "=LEFT(RC[-1],FIND(""-"",RC[-1])-1)"
Next
End Sub

 

相关文章

判断mysql字段是否为空

 字段内容为空有两种情况  1.为null  2.为字符串的空'' 字段 is null or trim(字段)=''...

win10 连接L2TP win7 连接L2TP遇到的问题

win10 连接L2TP win7 连接L2TP遇到的问题

PSK共享密钥文件位置/etc/ipsec.secretswin10无法链接的问题解决方案HKEY_LOCAL_MACHINE>SYSTEM>CurrentControlSet>Se...

mount:is write-protected, mounting read-only解决方案

window10升级之后就遇到mount: **** is write-protected, mounting read-onlymount: cannot mount *** read-only尝试...

汇成民政部门建站CMS系统V3.1

汇成民政部门建站CMS系统V3.1˂a target="_blank" href="download/hcmingzhenv3.1.rar"˃官方下载演示地址:ceshi/zhengfucmsv1/后...

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。