LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
plh plh is offline
external usenet poster
 
Posts: 48
Default What is the numeric value of xlNone, xlDiagonalDown and others?

Hello All XL Gurus,

I am calling and Excel spreadsheet as an external object from Solidworks (a
widely used CAD package) using the function

Set obEx = GetObject(strRtgFolder & strRtgFile)
where "strRtgFolder & strRtgFile" evaluates to an existing spreadsheet.

This is passed to a sub:

Call Stitch14Deg(obEx, intRtgNumStep, intNoteStart, intNoteInc)

then inside that sub to another sub:

Sub Stitch14Deg(obX As Object, intStep As Integer, intNStart As Integer, intNInc
As Integer)
....
....
....
Call HighlightActiveCell(obX, r, (c), frmStart.cmbType.Value)
....
....
End Sub

Sub HighlightActiveCell(oX As Object, r, c As Long, strSheet As String)

oX.sheets(strSheet).cells(r,c).Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
....
....
....
End Sub

When it gets to HighlightActiveCell I get a "Variable not defined" Error
referring to xlNone. There are many other constants referred to. I changed the
first xlNone to 1, just to see what would happen: The message moved back to
xlDiagonalDown.
Is there a way out of this?
I was thinking that if there is a reference somewhere of the numeric value of
these constants, I could substitute them in.

The following is a list of the constants I am trying to use:
xlNone
xlContinuous
xlMedium
xlAutomatic
xlDiagonalDown
xlDiagonalUp
xlEdgeLeft
xlEdgeTop
xlEdgeBottom
xlEdgeRight
xlInsideVertical
xlInsideHorizontal

Thank You!
-plh


--
Where are we going and why am I in this HAND BASKET??
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Numeric in Text to convert back to the form of Numeric for VLookup Purposes achilles Excel Discussion (Misc queries) 4 February 6th 06 07:05 AM
Match Single Numeric Criteria and Return Multiple Numeric Labels Sam via OfficeKB.com Excel Worksheet Functions 3 December 30th 05 08:01 PM
Match Single Numeric Criteria and Return Multiple Numeric Labels Sam via OfficeKB.com Excel Worksheet Functions 0 December 29th 05 08:44 PM
colorindex = xlnone on condition of month of year Jane Excel Programming 8 August 8th 05 12:44 AM
xlNone incorrectly valued? BruceD[_2_] Excel Programming 1 June 11th 04 07:06 PM


All times are GMT +1. The time now is 08:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"