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: 1
Default 2008-2003 incompatibility

I have multiple workbooks that have the following code:{some clean up
done so it may not be perfect}
Dim theRect As Shape
Dim curSheet As Worksheet
Set curSheet = ActiveSheet
Application.ScreenUpdating = False
For Each theRect In ActiveSheet.Shapes
If (theRect.Line.ForeColor.SchemeColor = 12) Then
theRect.Line.ForeColor.SchemeColor = 9
End If
Next


When that code runs on XP/Office 2003 in a workbook that has been
saved on Vista/Office 2008, I get runtime error 70, Permission denied
when trying to access the schemecolor in the if statement. This code
has been in the workbooks for quite a few years, but they have been
recently updated(in other areas) to work correctly on Vista/Office
2008.

Weird thing is that if I debug and skip the execution of the if
statement, I can modify the schemecolor, and then can access the
schemecolor of that rect with out issue.

Has anyone else seen this?
 
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
difference between the dates ex: 4/11/2008- 7/11/2008= 3 days difference between the dates ex: 4/11/2 Excel Worksheet Functions 4 November 3rd 08 08:37 AM
DOWNLOAD CRACKED 2008's SOFTWA ARCHICAD 11,UNIGRAPHICS NX5,SOLIDWORKS 2008,XSTEEL 13,AUTOCAD 2008 John Peterson[_4_] Excel Programming 0 October 28th 07 02:10 PM
Version Incompatibility JUnk Excel Programming 1 August 4th 05 03:42 PM
Excel 2000 and 2003 VBA and Macros Incompatibility Wboson Excel Programming 1 March 25th 05 10:35 PM
Excel 2000 v 2003 Macro & VBA Incompatibility Wboson Excel Programming 0 March 25th 05 09:13 PM


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