Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Data importing from excel using script
#2
Solved: 11 Years, 6 Months, 2 Weeks ago
Code:
Set objXL = CreateObject("Excel.Application")
    objXL.Application.visible = true
    Set objWB = objXL.WorkBooks.Open(filePath)
    Set objWS = objXL.ActiveWorkBook.WorkSheets(workSheetName)
    'how many rows are used in the current worksheet
    rCount = objWS.UsedRange.Rows.Count
    
   'Considering u know the column number
    For row = 1 To rCount
          MsgBox objWS.Cells(row,column).Value
    Next
    objXL.Quit
    Set objXL = Nothing
    Set objWB = Nothing
    Set objWS = Nothing
Reply


Messages In This Thread
RE: Data importing from excel using script - by Prafulla - 02-12-2009, 10:47 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Search and import data from excel under some rules. nwpulele 2 3,044 02-19-2015, 04:10 AM
Last Post: supputuri
  Excel and Driver Script shipu 1 3,917 02-27-2014, 09:09 AM
Last Post: supputuri
Question QTP Script for enter data to DB geethu105 2 3,396 02-24-2014, 06:54 PM
Last Post: guin.anirban
  How to populate data in weblist using excel vijifun 1 3,385 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,127 04-02-2013, 01:33 PM
Last Post: ACCBAJPA

Forum Jump:


Users browsing this thread: 1 Guest(s)