• 쇼핑몰
  • 커뮤니티
  • 북마크

vb6.0/vba




[vb6.0/vba] InternetExplorer 에 html 쓰기, HTML 넣기

하나를하더라도최선을
2020.05.17 22:53 332 0

본문



InternetExplorer 에 html 쓰기, IE에 HTML 쓰기:)


Dim IE As Object

Sub IEDC(T As String)

If IE Is Nothing Then Set IE = CreateObject("InternetExplorer.Application")

With IE

.Navigate2 "about:blank"

Do While .Busy = True Or .ReadyState <> 4

DoEvents

Loop

.Document.Body.innerHTML = Trim(T)

' .Visible = True

T = .Document.Body.innerTEXT

' .Quit

End With

' Set IE = Nothing

End Sub


또는 


Private Sub Command1_Click()

Dim T As String

T = "안녕!!"

WebBrowser1.Document.write T

End Sub



댓글목록 0

등록된 댓글이 없습니다.