Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Access not saved excel file
#1
Not Solved
I want to access the cell values present in an excel file which is not saved.
An already opened excel file having some values.

I wrote below code:


Code:
set excl=getobject("","excel.application")
set worksheet1= excl.ActiveSheet
for each cell in worksheet1.usedrange
msgbox cell.value
next


but in 3rd row I am getting error of object required Worksheet1

Kindly help
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to export the output value of a webedit object to a new excel file. mounika6677 1 1,508 04-14-2019, 05:18 PM
Last Post: mounika6677
  dtLocalSheet empty even though excel file contains data cantorre 2 2,425 05-10-2017, 12:47 PM
Last Post: vidhi
  Selecting file saved in a location excellentpawan 1 4,057 02-25-2014, 02:05 PM
Last Post: guin.anirban
  Importing data from Excel to Txt File kriday 2 3,348 07-13-2013, 06:52 PM
Last Post: kriday
  Unable to read the data from excel file attiliv 1 2,984 03-26-2013, 08:02 AM
Last Post: sams001

Forum Jump:


Users browsing this thread: 1 Guest(s)