Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Office97 Objects will Not Run Under 2000


Can anybody help me???
I have an excel file which was originially written in Office 97 bu
then updated under 2000. Since the updates have occured, several of th
object function give an run-time error 1004 when run again under 97

for example:
Sheet2.Range("A37:L50").Borders.LineStyle = xlLineStyleNone

this is just one example but occurs with application.object functions.
:

--
Craig Phillip
-----------------------------------------------------------------------
Craig Phillips's Profile: http://www.excelforum.com/member.php...fo&userid=1554
View this thread: http://www.excelforum.com/showthread.php?threadid=31474

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Office97 Objects will Not Run Under 2000

Generally:

Multiversion development should be done in the LOWEST version.
then tested for anomalies in higher version(s).

I've tested your code line in xl97 dutch version
and it works perfectly.

with 1 adjustment :)

Worksheets(2).Range("A37:L50").Borders.LineStyle = xlLineStyleNone

Note that Sheet2 is the codename of a worksheet object
(= the name of the VBcomponent in the workbook's VBproject)
which in a newly created sheet in Dutch would be "Blad2"


so the question is... does the ACTIVEworkbook contain
a worksheet with the CODEname sheet2?




--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam

Craig Phillips wrote in message
:


Can anybody help me???
I have an excel file which was originially written in Office 97 but
then updated under 2000. Since the updates have occured, several of

the
object function give an run-time error 1004 when run again under 97

for example:
Sheet2.Range("A37:L50").Borders.LineStyle = xlLineStyleNone

this is just one example but occurs with application.object functions.
:(



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
using office97 to read xlsx and docx files Steve C[_2_] Excel Discussion (Misc queries) 4 February 4th 09 05:06 PM
Will Excel Solver in Office97 work with Vista? Alan C[_2_] Excel Discussion (Misc queries) 1 December 13th 07 05:50 PM
Conversion from Office97 to Office 2003 Kåre Lester Christiani Excel Programming 1 September 8th 04 09:44 AM
Office97 controls seems different on Office2000/XP Ulver Pedersen Excel Programming 3 October 22nd 03 06:12 AM
Office97 Borja Excel Programming 0 October 14th 03 08:47 AM


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