Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Help with excel!

This one line errors out.
lastrow = nfrcws.Range("A65536").End(excel.XlDirection.xlUp) .Row + 1

vb.net gives this error below. Im using vb.net with excel 2000


An unhandled exception of type 'System.MissingMemberException' occurred in
microsoft.visualbasic.dll

Additional information: Public member 'XlDirection' on type
'ApplicationClass' not found.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 473
Default Help with excel!

Pat Lenahan wrote:
This one line errors out.
lastrow = nfrcws.Range("A65536").End(excel.XlDirection.xlUp) .Row + 1

vb.net gives this error below. Im using vb.net with excel 2000

An unhandled exception of type 'System.MissingMemberException' occurred in
microsoft.visualbasic.dll

Additional information: Public member 'XlDirection' on type
'ApplicationClass' not found.


I don't speak VB.Net but it looks like it may be a bug in the .Net object
model. You could try substituting the appropriate constant value

lastrow = nfrcws.Range("A65536").End(-4162).Row + 1

and adding a comment to indicate that you mean xlUp.


Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - reply in newsgroup

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:40 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"