<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Get Data from Website that Requires a Login</title>
	<atom:link href="http://dailydoseofexcel.com/archives/2011/03/08/get-data-from-website-that-requires-a-login/feed/" rel="self" type="application/rss+xml" />
	<link>http://dailydoseofexcel.com/archives/2011/03/08/get-data-from-website-that-requires-a-login/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Wed, 22 May 2013 22:14:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://dailydoseofexcel.com/archives/2011/03/08/get-data-from-website-that-requires-a-login/#comment-90496</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Wed, 27 Mar 2013 22:50:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=5006#comment-90496</guid>
		<description><![CDATA[Nope.  Anything that processes server-side isn&#039;t going to be much help when you&#039;re parsing html. Sorry.]]></description>
		<content:encoded><![CDATA[<p>Nope.  Anything that processes server-side isn&#8217;t going to be much help when you&#8217;re parsing html. Sorry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://dailydoseofexcel.com/archives/2011/03/08/get-data-from-website-that-requires-a-login/#comment-90483</link>
		<dc:creator>John</dc:creator>
		<pubDate>Wed, 27 Mar 2013 09:45:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=5006#comment-90483</guid>
		<description><![CDATA[Hi

Will it be possible to adapt this code for a ComponentArt_Grid? The source code of the HMTL that I want to extract the data from has the following code:

window.SharesAndIndices1_smartGrid1 = new ComponentArt_Grid(&#039;SharesAndIndices1_smartGrid1&#039;);
SharesAndIndices1_smartGrid1.Data = [[[new Date(2013,2,26,0,0,0),&#039;26 Mar 2013&#039;],16062,15600,15778,16000,1490791,[0.00,&#039;0.00&#039;],[0.00,&#039;0.00&#039;],[3.64,&#039;3.64&#039;],[7.67,&#039;7.67&#039;],[13.04,&#039;13.04&#039;],[3.64,&#039;3.64&#039;]],[[new Date(2013,2,25,0,0,0),&#039;25 Mar 2013&#039;],15713,15250,15400,15600,2273264,[0.00,&#039;0.00&#039;],[0.00,&#039;0.00&#039;],[3.73,&#039;3.73&#039;],[7.87,&#039;7.87&#039;],[12.71,&#039;12.71&#039;],[3.73,&#039;3.73&#039;]],


Which then continues for all the entries. How will one import this into Excel?

Thanks!]]></description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Will it be possible to adapt this code for a ComponentArt_Grid? The source code of the HMTL that I want to extract the data from has the following code:</p>
<p>window.SharesAndIndices1_smartGrid1 = new ComponentArt_Grid(&#8216;SharesAndIndices1_smartGrid1&#8242;);<br />
SharesAndIndices1_smartGrid1.Data = [[[new Date(2013,2,26,0,0,0),'26 Mar 2013'],16062,15600,15778,16000,1490791,[0.00,'0.00'],[0.00,'0.00'],[3.64,'3.64'],[7.67,'7.67'],[13.04,'13.04'],[3.64,'3.64']],[[new Date(2013,2,25,0,0,0),'25 Mar 2013'],15713,15250,15400,15600,2273264,[0.00,'0.00'],[0.00,'0.00'],[3.73,'3.73'],[7.87,'7.87'],[12.71,'12.71'],[3.73,'3.73']],</p>
<p>Which then continues for all the entries. How will one import this into Excel?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Web Query for a password protected website</title>
		<link>http://dailydoseofexcel.com/archives/2011/03/08/get-data-from-website-that-requires-a-login/#comment-87893</link>
		<dc:creator>Web Query for a password protected website</dc:creator>
		<pubDate>Thu, 22 Nov 2012 15:27:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=5006#comment-87893</guid>
		<description><![CDATA[[...]  [...]]]></description>
		<content:encoded><![CDATA[<p>[...]  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Get Data from Website that Requires a Login &#171; Excel Notes from Anthonli</title>
		<link>http://dailydoseofexcel.com/archives/2011/03/08/get-data-from-website-that-requires-a-login/#comment-86839</link>
		<dc:creator>Get Data from Website that Requires a Login &#171; Excel Notes from Anthonli</dc:creator>
		<pubDate>Fri, 02 Nov 2012 13:55:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=5006#comment-86839</guid>
		<description><![CDATA[[...] Get Data from Website that Requires a Login. Like this:LikeBe the first to like [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Get Data from Website that Requires a Login. Like this:LikeBe the first to like [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronni Andersen</title>
		<link>http://dailydoseofexcel.com/archives/2011/03/08/get-data-from-website-that-requires-a-login/#comment-85952</link>
		<dc:creator>Ronni Andersen</dc:creator>
		<pubDate>Mon, 17 Sep 2012 06:30:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=5006#comment-85952</guid>
		<description><![CDATA[Hey Dick.

First of all thanks for all the answers. 
I want data from a website with pass and login. I use your way, but i did not get data in excel.
The login works fine, but there is no table id of the table i want, so what to do. Is there a way to get the whole page? 

Here is my code:

&lt;code lang=&quot;vb&quot;&gt;Sub GetTable()
   
    Dim ieApp As InternetExplorer
    Dim ieDoc As Object
    Dim ieTable As Object
    Dim clip As DataObject
   
    &#039;create a new instance of ie
   Set ieApp = New InternetExplorer
   
    &#039;you don’t need this, but it’s good for debugging
   ieApp.Visible = True
   
    &#039;assume we’re not logged in and just go directly to the login page
   ieApp.navigate &quot;http://www.installationsblanket.dk/Logon.asp&quot;
    Do While ieApp.Busy: DoEvents: Loop
    Do Until ieApp.readyState = READYSTATE_COMPLETE: DoEvents: Loop
           
    Set ieDoc = ieApp.document
   
    &#039;fill in the login form – View Source from your browser to get the control names
   With ieDoc.forms(0)
        .Brugernavn.Value = &quot;roan&quot;
        .Adgangskode.Value = &quot;roan&quot;
        .submit
    End With
    Do While ieApp.Busy: DoEvents: Loop
    Do Until ieApp.readyState = READYSTATE_COMPLETE: DoEvents: Loop
   
    &#039;now that we’re in, go to the page we want
   ieApp.navigate &quot;http://www.installationsblanket.dk/selskab/600.asp&quot;
    Do While ieApp.Busy: DoEvents: Loop
    Do Until ieApp.readyState = READYSTATE_COMPLETE: DoEvents: Loop
   
    &#039;get the table based on the table’s id
   Set ieDoc = ieApp.document
    Set ieTable = ieDoc.all.Item(&quot;&quot;)
   
    &#039;copy the tables html to the clipboard and paste to teh sheet
   If Not ieTable Is Nothing Then
        Set clip = New DataObject
        clip.SetText &quot;&quot; &amp; MieTable.innerHTML &amp; &quot;&quot;
        clip.PutInClipboard
        Sheet1.Select
        Sheet1.Range(&quot;A1&quot;).Select
        Sheet1.PasteSpecial &quot;Unicode Text&quot;
    End If
   
    &#039;close &#039;er up
   ieApp.Quit
    Set ieApp = Nothing
   
End Sub&lt;/code&gt;

Im pretty new in VBA, what can i write at last to get the table? 

Thanks for help.]]></description>
		<content:encoded><![CDATA[<p>Hey Dick.</p>
<p>First of all thanks for all the answers.<br />
I want data from a website with pass and login. I use your way, but i did not get data in excel.<br />
The login works fine, but there is no table id of the table i want, so what to do. Is there a way to get the whole page? </p>
<p>Here is my code:</p>
<div class="codecolorer-container vb default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="vb codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #E56717; font-weight: bold;">Sub</span> GetTable()<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #151B8D; font-weight: bold;">Dim</span> ieApp <span style="color: #151B8D; font-weight: bold;">As</span> InternetExplorer<br />
&nbsp; &nbsp; <span style="color: #151B8D; font-weight: bold;">Dim</span> ieDoc <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Object</span><br />
&nbsp; &nbsp; <span style="color: #151B8D; font-weight: bold;">Dim</span> ieTable <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Object</span><br />
&nbsp; &nbsp; <span style="color: #151B8D; font-weight: bold;">Dim</span> clip <span style="color: #151B8D; font-weight: bold;">As</span> DataObject<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #008000;">'create a new instance of ie</span><br />
&nbsp; &nbsp;<span style="color: #151B8D; font-weight: bold;">Set</span> ieApp = <span style="color: #E56717; font-weight: bold;">New</span> InternetExplorer<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #008000;">'you don’t need this, but it’s good for debugging</span><br />
&nbsp; &nbsp;ieApp.Visible = <span style="color: #00C2FF; font-weight: bold;">True</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #008000;">'assume we’re not logged in and just go directly to the login page</span><br />
&nbsp; &nbsp;ieApp.navigate <span style="color: #800000;">&quot;http://www.installationsblanket.dk/Logon.asp&quot;</span><br />
&nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">Do</span> <span style="color: #8D38C9; font-weight: bold;">While</span> ieApp.Busy: <span style="color: #8D38C9; font-weight: bold;">DoEvents</span>: <span style="color: #8D38C9; font-weight: bold;">Loop</span><br />
&nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">Do</span> <span style="color: #8D38C9; font-weight: bold;">Until</span> ieApp.readyState = READYSTATE_COMPLETE: <span style="color: #8D38C9; font-weight: bold;">DoEvents</span>: <span style="color: #8D38C9; font-weight: bold;">Loop</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #151B8D; font-weight: bold;">Set</span> ieDoc = ieApp.document<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #008000;">'fill in the login form – View Source from your browser to get the control names</span><br />
&nbsp; &nbsp;<span style="color: #8D38C9; font-weight: bold;">With</span> ieDoc.forms(0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; .Brugernavn.Value = <span style="color: #800000;">&quot;roan&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; .Adgangskode.Value = <span style="color: #800000;">&quot;roan&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; .submit<br />
&nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">With</span><br />
&nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">Do</span> <span style="color: #8D38C9; font-weight: bold;">While</span> ieApp.Busy: <span style="color: #8D38C9; font-weight: bold;">DoEvents</span>: <span style="color: #8D38C9; font-weight: bold;">Loop</span><br />
&nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">Do</span> <span style="color: #8D38C9; font-weight: bold;">Until</span> ieApp.readyState = READYSTATE_COMPLETE: <span style="color: #8D38C9; font-weight: bold;">DoEvents</span>: <span style="color: #8D38C9; font-weight: bold;">Loop</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #008000;">'now that we’re in, go to the page we want</span><br />
&nbsp; &nbsp;ieApp.navigate <span style="color: #800000;">&quot;http://www.installationsblanket.dk/selskab/600.asp&quot;</span><br />
&nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">Do</span> <span style="color: #8D38C9; font-weight: bold;">While</span> ieApp.Busy: <span style="color: #8D38C9; font-weight: bold;">DoEvents</span>: <span style="color: #8D38C9; font-weight: bold;">Loop</span><br />
&nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">Do</span> <span style="color: #8D38C9; font-weight: bold;">Until</span> ieApp.readyState = READYSTATE_COMPLETE: <span style="color: #8D38C9; font-weight: bold;">DoEvents</span>: <span style="color: #8D38C9; font-weight: bold;">Loop</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #008000;">'get the table based on the table’s id</span><br />
&nbsp; &nbsp;<span style="color: #151B8D; font-weight: bold;">Set</span> ieDoc = ieApp.document<br />
&nbsp; &nbsp; <span style="color: #151B8D; font-weight: bold;">Set</span> ieTable = ieDoc.all.Item(<span style="color: #800000;">&quot;&quot;</span>)<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #008000;">'copy the tables html to the clipboard and paste to teh sheet</span><br />
&nbsp; &nbsp;<span style="color: #8D38C9; font-weight: bold;">If</span> <span style="color: #8D38C9; font-weight: bold;">Not</span> ieTable <span style="color: #8D38C9; font-weight: bold;">Is</span> <span style="color: #00C2FF; font-weight: bold;">Nothing</span> <span style="color: #8D38C9; font-weight: bold;">Then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #151B8D; font-weight: bold;">Set</span> clip = <span style="color: #E56717; font-weight: bold;">New</span> DataObject<br />
&nbsp; &nbsp; &nbsp; &nbsp; clip.SetText <span style="color: #800000;">&quot;&quot;</span> &amp;amp; MieTable.innerHTML &amp;amp; <span style="color: #800000;">&quot;&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; clip.PutInClipboard<br />
&nbsp; &nbsp; &nbsp; &nbsp; Sheet1.<span style="color: #8D38C9; font-weight: bold;">Select</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; Sheet1.Range(<span style="color: #800000;">&quot;A1&quot;</span>).<span style="color: #8D38C9; font-weight: bold;">Select</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; Sheet1.PasteSpecial <span style="color: #800000;">&quot;Unicode Text&quot;</span><br />
&nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">If</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #008000;">'close 'er up</span><br />
&nbsp; &nbsp;ieApp.Quit<br />
&nbsp; &nbsp; <span style="color: #151B8D; font-weight: bold;">Set</span> ieApp = <span style="color: #00C2FF; font-weight: bold;">Nothing</span><br />
&nbsp; &nbsp;<br />
<span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Sub</span></div></div>
<p>Im pretty new in VBA, what can i write at last to get the table? </p>
<p>Thanks for help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronni</title>
		<link>http://dailydoseofexcel.com/archives/2011/03/08/get-data-from-website-that-requires-a-login/#comment-85922</link>
		<dc:creator>Ronni</dc:creator>
		<pubDate>Sun, 16 Sep 2012 08:22:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=5006#comment-85922</guid>
		<description><![CDATA[Hello Dick. 

I Use your code, but i dont get data. The login works fine. I cant see a table id, but it would all so be fine with the whole site? Can yoy helt me?

Here is my code:

&lt;code lang=&quot;vb&quot;&gt;Sub GetTable()
   
    Dim ieApp As InternetExplorer
    Dim ieDoc As Object
    Dim ieTable As Object
    Dim clip As DataObject
   
    &#039;create a new instance of ie
   Set ieApp = New InternetExplorer
   
    &#039;you don’t need this, but it’s good for debugging
   ieApp.Visible = True
   
    &#039;assume we’re not logged in and just go directly to the login page
   ieApp.navigate &quot;http://www.installationsblanket.dk/Logon.asp&quot;
    Do While ieApp.Busy: DoEvents: Loop
    Do Until ieApp.readyState = READYSTATE_COMPLETE: DoEvents: Loop
           
    Set ieDoc = ieApp.document
   
    &#039;fill in the login form – View Source from your browser to get the control names
   With ieDoc.forms(0)
        .Brugernavn.Value = &quot;***&quot;
        .Adgangskode.Value = &quot;***&quot;
        .submit
    End With
    Do While ieApp.Busy: DoEvents: Loop
    Do Until ieApp.readyState = READYSTATE_COMPLETE: DoEvents: Loop
   
    &#039;now that we’re in, go to the page we want
   ieApp.navigate &quot;http://www.installationsblanket.dk/selskab/600.asp&quot;
    Do While ieApp.Busy: DoEvents: Loop
    Do Until ieApp.readyState = READYSTATE_COMPLETE: DoEvents: Loop
   
    &#039;get the table based on the table’s id
   Set ieDoc = ieApp.document
    Set ieTable = ieDoc.all.Item(&quot;&quot;)
   
    &#039;copy the tables html to the clipboard and paste to teh sheet
   If Not ieTable Is Nothing Then
        Set clip = New DataObject
        clip.SetText &quot;&quot; &amp; ieTable.outerHTML &amp; &quot;&quot;
        clip.PutInClipboard
        Sheet1.Select
        Sheet1.Range(&quot;A1&quot;).Select
        Sheet1.PasteSpecial &quot;Unicode Text&quot;
    End If
   
    &#039;close &#039;er up
   ieApp.Quit
    Set ieApp = Nothing
   
End Sub&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>Hello Dick. </p>
<p>I Use your code, but i dont get data. The login works fine. I cant see a table id, but it would all so be fine with the whole site? Can yoy helt me?</p>
<p>Here is my code:</p>
<div class="codecolorer-container vb default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="vb codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #E56717; font-weight: bold;">Sub</span> GetTable()<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #151B8D; font-weight: bold;">Dim</span> ieApp <span style="color: #151B8D; font-weight: bold;">As</span> InternetExplorer<br />
&nbsp; &nbsp; <span style="color: #151B8D; font-weight: bold;">Dim</span> ieDoc <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Object</span><br />
&nbsp; &nbsp; <span style="color: #151B8D; font-weight: bold;">Dim</span> ieTable <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Object</span><br />
&nbsp; &nbsp; <span style="color: #151B8D; font-weight: bold;">Dim</span> clip <span style="color: #151B8D; font-weight: bold;">As</span> DataObject<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #008000;">'create a new instance of ie</span><br />
&nbsp; &nbsp;<span style="color: #151B8D; font-weight: bold;">Set</span> ieApp = <span style="color: #E56717; font-weight: bold;">New</span> InternetExplorer<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #008000;">'you don’t need this, but it’s good for debugging</span><br />
&nbsp; &nbsp;ieApp.Visible = <span style="color: #00C2FF; font-weight: bold;">True</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #008000;">'assume we’re not logged in and just go directly to the login page</span><br />
&nbsp; &nbsp;ieApp.navigate <span style="color: #800000;">&quot;http://www.installationsblanket.dk/Logon.asp&quot;</span><br />
&nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">Do</span> <span style="color: #8D38C9; font-weight: bold;">While</span> ieApp.Busy: <span style="color: #8D38C9; font-weight: bold;">DoEvents</span>: <span style="color: #8D38C9; font-weight: bold;">Loop</span><br />
&nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">Do</span> <span style="color: #8D38C9; font-weight: bold;">Until</span> ieApp.readyState = READYSTATE_COMPLETE: <span style="color: #8D38C9; font-weight: bold;">DoEvents</span>: <span style="color: #8D38C9; font-weight: bold;">Loop</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #151B8D; font-weight: bold;">Set</span> ieDoc = ieApp.document<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #008000;">'fill in the login form – View Source from your browser to get the control names</span><br />
&nbsp; &nbsp;<span style="color: #8D38C9; font-weight: bold;">With</span> ieDoc.forms(0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; .Brugernavn.Value = <span style="color: #800000;">&quot;***&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; .Adgangskode.Value = <span style="color: #800000;">&quot;***&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; .submit<br />
&nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">With</span><br />
&nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">Do</span> <span style="color: #8D38C9; font-weight: bold;">While</span> ieApp.Busy: <span style="color: #8D38C9; font-weight: bold;">DoEvents</span>: <span style="color: #8D38C9; font-weight: bold;">Loop</span><br />
&nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">Do</span> <span style="color: #8D38C9; font-weight: bold;">Until</span> ieApp.readyState = READYSTATE_COMPLETE: <span style="color: #8D38C9; font-weight: bold;">DoEvents</span>: <span style="color: #8D38C9; font-weight: bold;">Loop</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #008000;">'now that we’re in, go to the page we want</span><br />
&nbsp; &nbsp;ieApp.navigate <span style="color: #800000;">&quot;http://www.installationsblanket.dk/selskab/600.asp&quot;</span><br />
&nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">Do</span> <span style="color: #8D38C9; font-weight: bold;">While</span> ieApp.Busy: <span style="color: #8D38C9; font-weight: bold;">DoEvents</span>: <span style="color: #8D38C9; font-weight: bold;">Loop</span><br />
&nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">Do</span> <span style="color: #8D38C9; font-weight: bold;">Until</span> ieApp.readyState = READYSTATE_COMPLETE: <span style="color: #8D38C9; font-weight: bold;">DoEvents</span>: <span style="color: #8D38C9; font-weight: bold;">Loop</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #008000;">'get the table based on the table’s id</span><br />
&nbsp; &nbsp;<span style="color: #151B8D; font-weight: bold;">Set</span> ieDoc = ieApp.document<br />
&nbsp; &nbsp; <span style="color: #151B8D; font-weight: bold;">Set</span> ieTable = ieDoc.all.Item(<span style="color: #800000;">&quot;&quot;</span>)<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #008000;">'copy the tables html to the clipboard and paste to teh sheet</span><br />
&nbsp; &nbsp;<span style="color: #8D38C9; font-weight: bold;">If</span> <span style="color: #8D38C9; font-weight: bold;">Not</span> ieTable <span style="color: #8D38C9; font-weight: bold;">Is</span> <span style="color: #00C2FF; font-weight: bold;">Nothing</span> <span style="color: #8D38C9; font-weight: bold;">Then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #151B8D; font-weight: bold;">Set</span> clip = <span style="color: #E56717; font-weight: bold;">New</span> DataObject<br />
&nbsp; &nbsp; &nbsp; &nbsp; clip.SetText <span style="color: #800000;">&quot;&quot;</span> &amp;amp; ieTable.outerHTML &amp;amp; <span style="color: #800000;">&quot;&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; clip.PutInClipboard<br />
&nbsp; &nbsp; &nbsp; &nbsp; Sheet1.<span style="color: #8D38C9; font-weight: bold;">Select</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; Sheet1.Range(<span style="color: #800000;">&quot;A1&quot;</span>).<span style="color: #8D38C9; font-weight: bold;">Select</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; Sheet1.PasteSpecial <span style="color: #800000;">&quot;Unicode Text&quot;</span><br />
&nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">If</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #008000;">'close 'er up</span><br />
&nbsp; &nbsp;ieApp.Quit<br />
&nbsp; &nbsp; <span style="color: #151B8D; font-weight: bold;">Set</span> ieApp = <span style="color: #00C2FF; font-weight: bold;">Nothing</span><br />
&nbsp; &nbsp;<br />
<span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Sub</span></div></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: sam</title>
		<link>http://dailydoseofexcel.com/archives/2011/03/08/get-data-from-website-that-requires-a-login/#comment-83507</link>
		<dc:creator>sam</dc:creator>
		<pubDate>Thu, 28 Jun 2012 23:46:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=5006#comment-83507</guid>
		<description><![CDATA[hi, i read all comments about getting the explorer to login to a webpage where username and password is needed, i am trying to get my code to do that for me, but iwas unsuccesful, probably i dont get the right input name, let me give here the source page maybe some1 can tell me exactly what to put in the VBA,



 &lt;tr
  
     
    E-Mail Address:
     
        
          
           Password:
            
              ]]></description>
		<content:encoded><![CDATA[<p>hi, i read all comments about getting the explorer to login to a webpage where username and password is needed, i am trying to get my code to do that for me, but iwas unsuccesful, probably i dont get the right input name, let me give here the source page maybe some1 can tell me exactly what to put in the VBA,</p>
<p> &lt;tr</p>
<p>    E-Mail Address:</p>
<p>           Password:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://dailydoseofexcel.com/archives/2011/03/08/get-data-from-website-that-requires-a-login/#comment-83095</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Tue, 19 Jun 2012 16:05:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=5006#comment-83095</guid>
		<description><![CDATA[Ankit: Well, it looks like that web app was deleted.  In other bad news, I can&#039;t seem to find the source code - possibly also deleted.  I probably looked at it and couldn&#039;t figure out why I wrote it.  I&#039;ll try to recreate it and get it back up.]]></description>
		<content:encoded><![CDATA[<p>Ankit: Well, it looks like that web app was deleted.  In other bad news, I can&#8217;t seem to find the source code &#8211; possibly also deleted.  I probably looked at it and couldn&#8217;t figure out why I wrote it.  I&#8217;ll try to recreate it and get it back up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ankit</title>
		<link>http://dailydoseofexcel.com/archives/2011/03/08/get-data-from-website-that-requires-a-login/#comment-82973</link>
		<dc:creator>Ankit</dc:creator>
		<pubDate>Fri, 15 Jun 2012 18:06:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=5006#comment-82973</guid>
		<description><![CDATA[Dick: I have tried using your code and it is working fine till the code line mentioned below:

Set ieDoc = ieApp.Document

At the above line code stops and gives an error 

Run-time error &#039;-2147467259 (80004005)&quot; 
Automation Error 
Unspecified Error

Any idea as to why am I getting this error?

Thanks in advance.]]></description>
		<content:encoded><![CDATA[<p>Dick: I have tried using your code and it is working fine till the code line mentioned below:</p>
<p>Set ieDoc = ieApp.Document</p>
<p>At the above line code stops and gives an error </p>
<p>Run-time error &#8216;-2147467259 (80004005)&#8221;<br />
Automation Error<br />
Unspecified Error</p>
<p>Any idea as to why am I getting this error?</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://dailydoseofexcel.com/archives/2011/03/08/get-data-from-website-that-requires-a-login/#comment-79735</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Tue, 15 May 2012 13:44:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=5006#comment-79735</guid>
		<description><![CDATA[Matthew: The login controls don&#039;t appear to be part of a form tag or there&#039;s some javascript business that creates the POST action.  I don&#039;t think this method will work.  You can try JPs method up in the second comment.  I couldn&#039;t get it to work, but it might be worth trying with a real username and password.]]></description>
		<content:encoded><![CDATA[<p>Matthew: The login controls don&#8217;t appear to be part of a form tag or there&#8217;s some javascript business that creates the POST action.  I don&#8217;t think this method will work.  You can try JPs method up in the second comment.  I couldn&#8217;t get it to work, but it might be worth trying with a real username and password.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
