Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
using office97 to read xlsx and docx files | Excel Discussion (Misc queries) | |||
Will Excel Solver in Office97 work with Vista? | Excel Discussion (Misc queries) | |||
Conversion from Office97 to Office 2003 | Excel Programming | |||
Office97 controls seems different on Office2000/XP | Excel Programming | |||
Office97 | Excel Programming |