473,410 Members | 1,852 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,410 software developers and data experts.

Excel constants with late binding

Can anyone tell me how I refer to Excel constants when using late binding.

I've tried searching the Excel.application interface but can't find any
reference in the hierarchy to an object that holds constants (such as
XlPattern.XL.....).

This must be possible (e.g. as with a typelib) but I can't track it down.
Any help appreciated.
Nov 20 '05 #1
3 2536
What kind of constants are you looking for ?
For example XlHAlign.xlHAlignLeft (-4131) is one constant I use to set the horizontal alignment of a column. And there's more of them. I use them in late binding but I'm still not sure if this is the kind of constants you're out for.
/Rickard
Nov 20 '05 #2
* Lenonardo <le******@duckpond.co.uk> scripsit:
Can anyone tell me how I refer to Excel constants when using late binding.

I've tried searching the Excel.application interface but can't find any
reference in the hierarchy to an object that holds constants (such as
XlPattern.XL.....).

This must be possible (e.g. as with a typelib) but I can't track it down.


Mhm... You can redefine the constanty "by hand".

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
"=?Utf-8?B?Umlja2FyZA==?=" <an*******@discussions.microsoft.com> wrote in
news:9C**********************************@microsof t.com:
What kind of constants are you looking for ?
For example XlHAlign.xlHAlignLeft (-4131) is one constant I use to set the horizontal alignment of a column. And there's more of them. I use them
in late binding but I'm still not sure if this is the kind of constants
you're out for.

/Rickard


I am explicitly trying to avoid hardcoding any constants into my
application.
As the constants are available through an OO interface (and are much easier
to debug that way) I would much prefer to use it - if I can find the entry
points.

I wish to do this for ALL constants / hardcoded parameters (some of which
may be static objects for all I know).

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: apgoodb | last post by:
I have a database that I built some functionality to export a query to excel and then do some formatting. After reading a lot of comments it seems I need to use "late binding", because some of the...
8
by: deko | last post by:
When using automation (and especially with early binding) I've heard it is best to use explicit references to everything. For example: Dim xlChart as Excel.Chart rather than Dim objChart...
3
by: deko | last post by:
So I've decided to convert from Early Binding to Late Binding. Now that I've been baptized, I need some instruction in the faith. My former ways were thus: Dim xlapp As Excel.Application Set...
3
by: Dent2 | last post by:
I wrote a nice C# excel routine to automate the formatting of some raw CSV data. I wrote the routine on a WinXP computer with Visual Studio .NET 2003 and Office XP installed. It compiled and ran...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.