Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Different VBA versions

Hello!
I have made a program with Excel 2002 SP-2 (Visual Basic version 6.3). The
program will be used in Excel 97 SR-2 (don't know the Visual Basic version,
because Help/About Microsoft Visual Basic doens't tell anything)
I just tried to get the prorram to work in Excel 97, but it didn't. There is
probably some version differences with Visual Basic. Can somebody help me
with following questions:
1) Is there always specific Visual Basic version with specific Excel version
or can same Excel version have different versions of Visual Basic in some
cases?
2) Is there somewhere list about differences with these Visual Basic
versions which I am working?
3) Do you have good suggestions what I should do? Is the only answer to
manually check all the code through so that it works with older Visual Basic
version?


Thanks very much!

BR,
Tommi


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Different VBA versions


It is usually best to programme in the *earliest* version that will be
used.

Excel is supposed to be backwards compatible, but can never be forwards
compatible.


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

~~Now Available: Financial Statements.xls, a step by step guide to creating financial statements
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Different VBA versions

Hi Tommi

Excel 97 : VB5
Excel 2000 up for Windows: VB6
Excel Macintosh: VB5

Basically yes, you have to make sure your code works in VB5, or code
separate procedures depending on VB version. One way to check that is

#If VBA6 Then
'something VB6 spesific
#Else
'something else
#End If

The most common problems running 2000 code on 97 is modeless userforms
(unsupported in Excel97) and a few string manipulations like Split() and
InstrRev. There are workarounds for all this, so start checking where your
code fails.

This said: Always develop on the oldest version, or you're working
blindfolded. Get your hands on a copy of Excel97 before you continue.
--
HTH. Best wishes Harald
Followup to newsgroup only please

"Tommi" skrev i melding
...
Hello!
I have made a program with Excel 2002 SP-2 (Visual Basic version 6.3). The
program will be used in Excel 97 SR-2 (don't know the Visual Basic

version,
because Help/About Microsoft Visual Basic doens't tell anything)
I just tried to get the prorram to work in Excel 97, but it didn't. There

is
probably some version differences with Visual Basic. Can somebody help me
with following questions:
1) Is there always specific Visual Basic version with specific Excel

version
or can same Excel version have different versions of Visual Basic in some
cases?
2) Is there somewhere list about differences with these Visual Basic
versions which I am working?
3) Do you have good suggestions what I should do? Is the only answer to
manually check all the code through so that it works with older Visual

Basic
version?


Thanks very much!

BR,
Tommi




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
A questions of versions Suze Excel Discussion (Misc queries) 2 June 23rd 06 02:03 PM
Two Versions in One File SeaTiger New Users to Excel 2 February 8th 06 01:30 AM
Please include fonts from previous versions ('98) in new versions JJBQ Excel Discussion (Misc queries) 3 October 8th 05 07:19 PM
Excel Versions neilcounter Excel Discussion (Misc queries) 5 June 1st 05 11:30 PM
Two Versions Bill Excel Discussion (Misc queries) 3 December 1st 04 08:17 PM


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