LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 52
Default Help. Getting error retrieveing version number

I use the following code to get the application's version.

Dim iAppVer As Integer
iAppVer = CInt(Left(CStr(Application.Version), 2))

Because Application.Version returns a string, the code converts to a
value. Yes, I do realize as a string I can perform comparisons like
numbers, but I found that is NOT true when working with computers using
MUI (Mulitlingual User Interface). Specifically when switched to
French, I'm forced to convert to value or else it will error as a
string. Doing so fixed my French problem. So, this code has been
working great for both MUI and non-MUI machines.

Except now I have machines in Norway getting errors with this section
of code. They run English non-MUI computers with v2000 Office. My US
and UK users have the same setup and no problems, so I shouldn't be
having this problem in Norway.

Anyway, I'm getting a Type 13 Mismatch on this section of code. Any
ideas? Any other ways to code this that will work with MUI's (French)
and other machines?

Thanks!

 
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
retrieveing lost info twhiggity Excel Discussion (Misc queries) 1 October 1st 07 05:51 PM
Error opening Excel in different version Rob Excel Discussion (Misc queries) 2 June 6th 06 02:02 AM
increment version number Lozza77 Excel Discussion (Misc queries) 4 May 17th 06 09:17 AM
What does error #AD? mean in Turkish Excel version? Alexk Excel Worksheet Functions 2 February 23rd 06 01:16 PM
DataObject Error in Excel version 2002 PT_VBA_GRRL Excel Programming 1 December 27th 05 10:25 PM


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