Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,071
Default 2002 versus 2007 question

Rick
Thanks for that. Yes, it was a lower case thing. We are doing this by
phone and we missed that. Otto
"Rick Rothstein" wrote in message
...
I'm assuming the filename is being read from the system... perhaps it is
in lower case on the 2007 computer. Try the MsgBox line this way and
see...

MsgBox InStr(1, TheFile, "Old.", vbTextCompare)

--
Rick (MVP - Excel)


"Otto Moehrbach" wrote in message
...
I have Excel 2002 and I'm helping an OP who has 2007.
The following macro is a simplification of our problem but does
demonstrate the problem.
On my 2002 machine, the message box produces a 5. On his 2007 machine,
he gets a 0.
Sub TestInStr()
TheFile = "S12 Old.doc"
MsgBox InStr(TheFile, "Old.")
End Sub

What am I missing? Thanks for your time. Otto




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
'Costom View' in Excel 2003 versus Excel 2007 Byaym Excel Discussion (Misc queries) 0 September 18th 08 10:55 AM
Cubevalue (Excel 2007) versus Cubecellvalue (Excel 2003) Quiller38 Excel Programming 3 April 25th 08 02:23 PM
UserInterfaceOnly in 2000 versus 2002 Lee S[_2_] Excel Programming 4 August 17th 05 03:43 AM
Excel 2003 versus 2002 seem incompatible related to the EDATE fun. MCLENO Excel Worksheet Functions 1 April 20th 05 08:34 PM
Excel 2000 versus Excel 2002 question Carla[_4_] Excel Programming 1 July 22nd 04 06:54 PM


All times are GMT +1. The time now is 02:59 AM.

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"