Solved

VB.net Excel Add-in 'xlEdgeTop' is not declared.

Posted on 2014-03-12
2
672 Views
Last Modified: 2014-03-12
Hi

In my VB.net Excel Add-in I am trying to work with cell borders. In the code below I get the error 'xlEdgeTop' is not declared. How do I correct this?

   C = Globals.ThisAddIn.Application.Selection.Borders(xlEdgeTop).ColorIndex
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
2 Comments
 
LVL 33

Accepted Solution

by:
Norie earned 500 total points
ID: 39924617
Looks like xlEdgeTop is being treated as an undeclared variable in your add-in.

Try fully qualifying it, something like this perhaps.
xlApp.XlBordersIndex.xlEdgeTop

Open in new window

0
 

Author Closing Comment

by:murbro
ID: 39924633
thanks very much
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

733 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