Solved

VS 2005 End Error

Posted on 2007-11-14
6
138 Views
Last Modified: 2013-11-26
Hi

I am getting an error on the code that I am converting from VBA to Visual Studio
= xlRange.Range("A" & RowNum).End(xlToRight).Column
The error is occurring on the xlToRight
0
Comment
Question by:murbro
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
6 Comments
 
LVL 47

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 20278379
Hi murbro,

Use this....

    xlRange.Range("A" & RowNum).End(Excel.XlDirection.xlToRight).Column

...or you can create your own constants....

    Public Const xlToRight As Integer = Excel.XlDirection.xlToRight

...and use your original VBA code.

Regards,

Wayne
0
 
LVL 23

Accepted Solution

by:
Ashish Patel earned 500 total points
ID: 20278383
It should be like this
= xlRange.Range("A" & RowNum).End(Excel.XlDirection.xlToRight).Column
0
 
LVL 47

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 20278429
Can you please explain how the selected response differs from the one I suggested 2 minutes beforehand?
0
Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

 
LVL 47

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 20278439
0
 

Author Comment

by:murbro
ID: 20278574
Hi

Sorry error on my part. Scrolled down too quickly. Can I reallocate the points
0
 
LVL 47

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 20278601
Yes, you can ask a question in Community Support and ask for the question to be reopened.

http://www.experts-exchange.com/Community_Support/General/
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question