Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Mid$ Function

I have a spreadsheet that is used in both XP and XL97.
My problem is that I use the MID$ function to capture
some information. It works fine and dandy in XP, but it
will not work in XL97. The problem is that there is a
newer version of the DLL (msadomd) in XP than in XL97.

I need to be able to determine if the active cell that is
being modified is either the I or the J column. Is there
a way in which I can do this that will work in both XL97
and XP?

Any help would be appreciated. Thanks.

Kirk
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Mid$ Function

go into tools=References in the VBE and clean up the reference(s) shown as
missing and it should work fine.

--
Regards,
Tom Ogilvy

"Kirk" wrote in message
...
I have a spreadsheet that is used in both XP and XL97.
My problem is that I use the MID$ function to capture
some information. It works fine and dandy in XP, but it
will not work in XL97. The problem is that there is a
newer version of the DLL (msadomd) in XP than in XL97.

I need to be able to determine if the active cell that is
being modified is either the I or the J column. Is there
a way in which I can do this that will work in both XL97
and XP?

Any help would be appreciated. Thanks.

Kirk



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default Mid$ Function

Hi Kirk,

The Mid$ function is not the problem, the problem is (assuming that you
correctly identified the MISSING reference) your reference to the ADO MD
object library. If you remove the Mid$ function VBA will just bomb somewhere
else until you fix this reference problem.

Since ADO is not specific to Excel, you either need to find a machine
with the earliest version of this object library and do your final
Debug/Compile and save there, or you need to update the ADO versions on all
of your machines so that they have the most current version of this object
library. You can download various ADO version updates (referred to as MDAC)
from the following web site:

http://msdn.microsoft.com/library/de...entid=28001860

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *


"Kirk" wrote in message
...
I have a spreadsheet that is used in both XP and XL97.
My problem is that I use the MID$ function to capture
some information. It works fine and dandy in XP, but it
will not work in XL97. The problem is that there is a
newer version of the DLL (msadomd) in XP than in XL97.

I need to be able to determine if the active cell that is
being modified is either the I or the J column. Is there
a way in which I can do this that will work in both XL97
and XP?

Any help would be appreciated. Thanks.

Kirk



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Mid$ Function

I can do that, but I need this spreadsheet to be
backwards compatible without having to have every user
who is using XL97 clean up the references. Right, Mid
and Left all do not work unless I fix the missing
reference (which is just a older version of the DLL). I
need it to work in both machines without any manual
changes happening.

Kirk


-----Original Message-----
go into tools=References in the VBE and clean up the

reference(s) shown as
missing and it should work fine.

--
Regards,
Tom Ogilvy

"Kirk" wrote in message
...
I have a spreadsheet that is used in both XP and XL97.
My problem is that I use the MID$ function to capture
some information. It works fine and dandy in XP, but

it
will not work in XL97. The problem is that there is a
newer version of the DLL (msadomd) in XP than in XL97.

I need to be able to determine if the active cell that

is
being modified is either the I or the J column. Is

there
a way in which I can do this that will work in both

XL97
and XP?

Any help would be appreciated. Thanks.

Kirk



.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Mid$ Function

Do your compile in xl97 and get it working with the proper reference - then
you can distribute that and it should work in both versions.

(are you actually using that DLL?)

--
Regards,
Tom Ogilvy

"Kirk" wrote in message
...
I can do that, but I need this spreadsheet to be
backwards compatible without having to have every user
who is using XL97 clean up the references. Right, Mid
and Left all do not work unless I fix the missing
reference (which is just a older version of the DLL). I
need it to work in both machines without any manual
changes happening.

Kirk


-----Original Message-----
go into tools=References in the VBE and clean up the

reference(s) shown as
missing and it should work fine.

--
Regards,
Tom Ogilvy

"Kirk" wrote in message
...
I have a spreadsheet that is used in both XP and XL97.
My problem is that I use the MID$ function to capture
some information. It works fine and dandy in XP, but

it
will not work in XL97. The problem is that there is a
newer version of the DLL (msadomd) in XP than in XL97.

I need to be able to determine if the active cell that

is
being modified is either the I or the J column. Is

there
a way in which I can do this that will work in both

XL97
and XP?

Any help would be appreciated. Thanks.

Kirk



.



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
Excel Data Validation/Lookup function does function correcty Kirkey Excel Worksheet Functions 2 May 25th 09 09:22 PM
copy of excel file not showing formulal/function in the function b oaallam Excel Discussion (Misc queries) 4 September 6th 07 01:20 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM
User-Defined Function pre-empting Built-in Function? How to undo???? MarWun Excel Programming 1 August 6th 03 09:31 PM


All times are GMT +1. The time now is 11:33 AM.

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"