|
现在能实现的是从第三行开始,A列昵称,B列内容,可以发送到微信,但是不知道怎么发文件和单元格范围截图发送,求问大佬应该怎么写
- Sub 自动发微信()
- Dim Irow As Long
- Shell "D:\我的程序\WeChat\WeChat.exe" '微信程序地址
- Irow = 3 '发送记录的起始行
- Do While Cells(Irow, "A").Value <> ""
- SendKeys "^f"
- Application.Wait (Now() + TimeSerial(0, 0, 1))
- SendKeys Range("A" & Irow)
- Application.Wait (Now() + TimeSerial(0, 0, 1))
- SendKeys "{Enter}"
- Application.Wait (Now() + TimeSerial(0, 0, 1))
- SendKeys Range("B" & Irow)
- Application.Wait (Now() + TimeSerial(0, 0, 1))
- SendKeys "{Enter}"
- Irow = Irow + 1
- Loop
- End Sub
复制代码
|
|