Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default where to find all excel constants?

Hi Ryan,
If you have TLBInf32.dll:
Sub ExcelConstantsList()
Application.ScreenUpdating = False
Dim R, Member, i As Long, oPath As String
oPath = Application.Path & "\excel.exe"
With CreateObject("TLI.typelibinfo")
..ContainingFile = oPath
Workbooks.Add
For Each R In .Constants
i = i + 1
Cells(i, 1) = R.Name: Cells(i, 1).Font.Bold = True
For Each Member In R.Members
i = i + 1
Cells(i, 1) = Member.Name
Cells(i, 2) = Member.Value
Next Member
Next R
End With
Columns("A:B").Columns.AutoFit
End Sub

Or for one constant:
Sub xlConstantValue()
Application.Run "'iValue " & InputBox("Enter the constant name :" _
, "Excel constants", "xlBlanks") & "'"
End Sub

Sub iValue(I$)
MsgBox I, 64
End Sub

MP

"Ryan H." a écrit dans le message de
le.rogers.com...
Hi,

I'm wondering where I can find all the excel contants listed and their
explanation? For example, I learned a couple of days ago og the xlBlanks
constant, and how to use it to find blank cells. What if I want to find out
if there is such a constant for finding filled up cells. Is there a webpage
out there or a resource I can look up to find these constants?

Thanks




Reply
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
Constants in Excel Sharon Excel Discussion (Misc queries) 0 July 24th 08 02:38 PM
Physical Constants for Excel Cragy Heap Excel Worksheet Functions 4 November 7th 06 02:00 PM
vba constants for excel diver Excel Discussion (Misc queries) 2 August 25th 05 07:51 PM
where to find all excel constants? Tom Ogilvy Excel Programming 0 August 4th 04 06:56 PM
changing the constants in the find function OkieViking Excel Programming 2 July 1st 04 05:38 PM


All times are GMT +1. The time now is 07:24 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"