Hi,
The scenario is like this. I have one .Xla file which has a functio
called generateReport(). This function will retrieve the data fro
Database and display in excel sheet.
Multiple Queried will be executed in generateReport(). I need to kno
the last filled cell address so that I can start next value fillin
form the next row. For this purpose I have used Range.End(xlDown
method to know the last filled cell. But while debugging I found tha
xldown value is -4121 and this method will return last row cel
address. i.e. $A$65536. so if I tried to move to next row (Se
Range.Offset(2, 0)) then runtime error will be displayed. Who t
resolve this problem? Is there any other method to get last filled cel
address?
This .Xla file function will be called from
VB application.
Thanks
Ve
--
vedpate
-----------------------------------------------------------------------
vedpatel's Profile:
http://www.excelforum.com/member.php...fo&userid=3198
View this thread:
http://www.excelforum.com/showthread.php?threadid=51720