Solved

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

Posted on 2014-03-12
2
683 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 34

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that undeā€¦
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

724 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