|
楼主 |
发表于 2012-11-7 17:09
|
显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
本帖最后由 hyy514 于 2012-11-7 17:35 编辑
代码: | '不需要显示返回
Sub t()
Dim Ft As New Fetion
If Ft.Init("13533336666", "123456") Then
Ft.SendMsgMyself "给自已的信息"
Ft.SendMsgMyself "定时信息", Format(Now + TimeValue("00:15:00"), "yyyymmddhhmm")
Ft.SendMsgFnd "给好友的信息", "135888888888"
End If
End Sub
'或
Sub tt()
Dim Ft As New Fetion
With Ft
If .Init("13533336666", "123456") Then
.SendMsgMyself "给自已的信息"
.SendMsgMyself "定时信息", Format(Now + TimeValue("00:15:00"), "yyyymmddhhmm")
.SendMsgFnd "给好友的信息", "135888888888"
End If
End With
End Sub
'或者这样,发送结果返回到单元格中
Sub ttt()
Dim Ft As New Fetion
If Ft.Init("13533336666", "123456") Then
Cells(1, 1) = Ft.SendMsgMyself("给自已的信息")
Cells(2, 1) = Ft.SendMsgMyself("定时信息", Format(Now + TimeValue("00:25:00"), "yyyymmddhhmm"))
Cells(3, 1) = Ft.SendMsgFnd("给好友的信息", "135888888888")
End If
End Sub
|
|
|