- ©«¤l
- 99
- ¥DÃD
- 15
- ºëµØ
- 0
- ¿n¤À
- 164
- ÂI¦W
- 2
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- office2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2017-5-30
- ³Ì«áµn¿ý
- 2024-10-5
|
¤§«e¦b¬YÓºô¯¸¤W¬Ý¨ì¦³¤H¤À¨Éªº ©Ò¥H¤]¤£§[¶Þµ¹¤j®a
µ{¦¡½X¦p¤U:
Option Explicit
Sub auto_open()
addhtmlobj (CStr(Sheet1.Range("A1")))
End Sub
Sub addhtmlobj(newstr As String)
Dim fs, a, fn
fn = ThisWorkbook.Path & "\x.htm"
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile(fn)
a.WriteLine ("<body scroll=""no"" topmargin=""0"" leftmargin=""0""><marquee>" & _
newstr & "</marquee></body>")
a.Close
Sheet1.WebBrowser1.Navigate ThisWorkbook.Path & "\x.htm"
End Sub
¶]°¨¿O.rar (11.58 KB)
|
|