Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Data importing from excel using script
#3
Solved: 12 Years, 10 Months, 2 Weeks ago
Code:
dim xl
set xl=createobject("excel.application")

xl.workbooks.open "D:\Documents and Settings\320003992\Desktop\New Microsoft Excel Worksheet.xls"
xl.visible=true
xl.sheets("Sheet1").select

rc=xl.activeworkbook.sheets("Sheet1").usedrange.rows.count
msgbox rc

for i=1 to rc

a=xl.cells(i,"A").value
msgbox a
b=xl.cells(i,"B").value
msgbox b

next

xl.activeworkbook.save
xl.quit
set xl=nothing
Reply


Messages In This Thread
RE: Data importing from excel using script - by bfakruddin - 02-12-2009, 11:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Search and import data from excel under some rules. nwpulele 2 3,353 02-19-2015, 04:10 AM
Last Post: supputuri
  Excel and Driver Script shipu 1 4,328 02-27-2014, 09:09 AM
Last Post: supputuri
Question QTP Script for enter data to DB geethu105 2 3,701 02-24-2014, 06:54 PM
Last Post: guin.anirban
  How to populate data in weblist using excel vijifun 1 3,662 12-05-2013, 12:06 PM
Last Post: basanth27
  VB SCRIPT to click on specific links on webpage and store related data ACCBAJPA 1 10,498 04-02-2013, 01:33 PM
Last Post: ACCBAJPA

Forum Jump:


Users browsing this thread: 10 Guest(s)