Hi,
with the followong code I can able to paste the all the values from the
excel sheet to the webpage.But if while pasting the second value the first
value is getting replaced. So finally I can paste only the last cell value.
I want all the range of values to be entered in the text filed. Please help
me in resloving this.
[code]
Sub GetTable()
Dim ieApp As InternetExplorer
'Dim ieDoc As Object
Dim ie As Object
Dim ieTable As Object
Dim finalrow As Variant
Range("A1").Activate
colno = ActiveCell.Column
MsgBox (colno)
Range("A1").Select
finalrow = Cells(Rows.Count, 1).End(xlUp).Row
MsgBox (finalrow)
'create a new instance of ie
'Set ieApp = CreateObject("InternetExplorer.application")
Set ie = CreateObject("InternetExplorer.application")
ie.Visible = True
ie.navigate "http://abcde.com"
Do
Loop Until ie.readyState = READYSTATE_COMPLETE
Application.Wait DateAdd("s", 3, Now)
While ie.Busy
DoEvents
Wend
For i = 2 To finalrow
' "abcde" is element id, if you forget then read the step number 2 again
ie.document.getelementbyid("Email").Value = Cells(i, colno).Value
Application.Wait (Now + TimeValue("0:00:10"))
'MsgBox "Time expired"
Next
[/code]
--
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
https://www.facebook.com/discussexcel
FORUM RULES
1) Use concise, accurate thread titles. Poor thread titles, like Please Help,
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.
NOTE : Don't ever post confidential data in a workbook. Forum owners and
members are not responsible for any loss.
---
You received this message because you are subscribed to the Google Groups "MS
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/groups/opt_out.