본문 바로가기
개발자 커뮤니티에 오신 것을 환영합니다!

vb6.0/vba 열려있는 인터넷익스플로워 (InternetExplorer) 내용 모두 가져오기

페이지 정보

profile_image
작성자 하나를하더라도최선을
댓글 0건 조회 25,981회 작성일 20-04-11 08:19

본문

Sub program1472_com()

Dim obj As Object, i As Integer

For Each obj In CreateObject("Shell.Application").Windows

If TypeName(obj.Document) = "HTMLDocument" Then

With CreateObject("new:{1C3B4210-F441-11CE-B9EA-00AA006B1A69}")

.SetText obj.Document.Body.outerText

.PutInClipboard

End With

i = i + 1

If Worksheets.Count >= i Then _

Worksheets(i).Cells.ClearContents: Worksheets(i).Paste _

Destination:=Worksheets(i).[A1]

End If

Next

End Sub

댓글목록

등록된 댓글이 없습니다.


Copyright © program1472 | IT HUB. All rights reserved.