SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Jun 2004
    Location
    India
    Posts
    22
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Getting value from xls

    Hi I want to read values from unique cell of xls.
    how do I do this ?

    At the moment I am getting value default for first cell of the column, from code below

    Dim Driver
    Dim myVer
    Set Driver = DDT.ExcelDriver
    ("c:\user1\Desktop\abc.xls","Sheet1")
    myVer=Driver.ColumnName(9)
    MsgBox(Driver.Value(myVer))

    is there any way to read xls unique cell (row & col)
    Please suggest.

    Thanks
    QS

  2. #2
    Senior Member
    Join Date
    Mar 2007
    Location
    Waterloo, Ontario, Canada
    Posts
    3,628
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Getting value from xls

    Yup, you can do this. Below should be a basic value read/write. Don't think I left anything out here.

    <font class="small">Code:</font><hr /><pre>
    Dim objWorkbook
    Dim objSheet
    set objExcel= CreateObject("Excel.Application")
    objWorkbook.Workbooks.Open("c:\user1\Desktop\abc.x ls")
    objSheet = objExcel.ActiveWorkbook.Worksheets(1)
    objSheet.Cells(1, 1).Value = "Good News"
    Log.Message(objSheet.Cells(1,1).Value)
    </pre><hr />
    Brent
    --------------------
    9 out of 10 people I prove wrong agree that I'm right. The other person is my wife.
    --------------------

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 05:47 AM.

Copyright BetaSoft Inc.