Save file

vba Denmark
  • 13 years ago

    Hi

    I want big help

    Public Sub HentOgGemSide()
        Set IE = CreateObject("InternetExplorer.Application")
        IE.Visible = True
        IE.navigate2 "


    http://google.dk" ' Get page...
        While IE.Busy: Wend
        Sleep 500
        SendKeys "%Fm", True 'Vis "Save as
        SendKeys HdSt = "C:\fjols\", True 'My path and file name
        Sleep 500
        SendKeys "{TAB}{DOWN}{UP}",





        Sleep 500
        SendKeys "%G", True '
        Sleep 3000 '

        IE.Quit
        Set IE = Nothing
      
    End Sub



     This code will not save a file name fjols.mht

    Can someone help me ?

    THX

     

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“In order to understand recursion, one must first understand recursion.”