Solved

VS 2005 End Error

Posted on 2007-11-14
6
139 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:Murray Brown
[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
How To Install Bash on Windows 10

Windows’ budding partnership with Canonical has certainly led to some great improvements. One of them being the ability to use Bash on your Windows machine without third party applications! This might be one of the greatest things a cloud engineer in a Windows environment can do!

 
LVL 47

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 20278439
0
 

Author Comment

by:Murray Brown
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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

624 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