Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using External VBA References for 64 and 32 bit XP

I have a spreadsheet with VBA code that references the Crystal Ball
Developers Kit. (Tools/References in VB). This file is in c:\Program
Files\... in 32bit and of course is in c:\Program Files (x86)\... on my 64
bit system.

How can I use the same spreadsheet on both 32 and 64 bits systems, since
when moving from one system to the other, the addin is missing (it's in the
other directory), and VBA bombs with a compile error.

Can the VBA include a 'dynanmic' reference, that checks the OS, and then
looks in the relevant Program Files folder? If so, how is this done in VBA?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Using External VBA References for 64 and 32 bit XP

Sounds like you need to look into use late-binding:
http://peltiertech.com/Excel/EarlyLateBinding.html

NickHK

"ralph_y" wrote in message
...
I have a spreadsheet with VBA code that references the Crystal Ball
Developers Kit. (Tools/References in VB). This file is in c:\Program
Files\... in 32bit and of course is in c:\Program Files (x86)\... on my 64
bit system.

How can I use the same spreadsheet on both 32 and 64 bits systems, since
when moving from one system to the other, the addin is missing (it's in

the
other directory), and VBA bombs with a compile error.

Can the VBA include a 'dynanmic' reference, that checks the OS, and then
looks in the relevant Program Files folder? If so, how is this done in

VBA?


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
Automate External References Jeremy Excel Discussion (Misc queries) 0 November 6th 09 08:30 PM
References to external workbooks Preston Excel Worksheet Functions 4 July 27th 09 07:03 PM
External References in Functions Ferencko Excel Worksheet Functions 2 March 21st 07 07:30 PM
External references Dean[_8_] Excel Programming 2 March 4th 05 04:59 AM
External References Iain Excel Discussion (Misc queries) 1 February 3rd 05 09:45 AM


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

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

About Us

"It's about Microsoft Excel"