• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 798
  • Last Modified:

C# equivilent of Range("iv4").End(xlToLeft).Address

Hello Experts,

I need the c# equivilent of Range("iv4").End(xlToLeft).Address.  It finds the first cell to the left of "iv4" that has data.

Thanks
0
eshurak
Asked:
eshurak
1 Solution
 
Rory ArchibaldCommented:
you need something like this I believe (wks is a worksheet variable):
 

rng = wks.get_Range("IV4", Type.Missing).get_End(Excel.XlDirection.xlToLeft);

Open in new window

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now