Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Different versions of Microsoft Excel...

Status
Not open for further replies.

StevenK

Programmer
Jan 5, 2001
1,294
GB
I am now supporting an application written in C# that integrates with Microsoft Excel.
This all works well - unfortunately I'm in a situation where I have a number of machines - some with MS Excel 97 and others with MS Excel XP.
Which is giving me something of an issue when I'm compiling on different machines.
The '.Save()' method takes a number of different parameters and the '.Value' property is not recognised on XP.
Is there any global methods I can be making use of to save me having to effectively maintain 2 copies of the same code ?
Any help here would be appreciated.
Thanks in advance,
Steve
 
You can use #if .. #elif .. #endif. So you can define which code parts have to be compiled.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top