Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default unable to get the Interior property of the range class

In repsonse to George's comments, I added some debug code. Once an OK
button is clicked in the application, the problematic line actually gets
executed several times (4, acutually) before causing an RT error on the
5th time.

I can see nothing in the code that would change state from one time to
the next. What could it be other than the environment? And what in the
environment other than protection? (static_int is a local static
variable. I expected it to increment, so now I have another mystery.)

Set wksht = Worksheets("DataInput")
Set theCell = wksht.Cells(cur_row, ValCol)
If cur_row = 11 And ValCol = 11 Then
static_int = static_int + 1
Debug.Print "Static_int = " & static_int & ", sheet = " &
wksht.name
End If
If theCell.Interior.Pattern = xlGray16 Then...

Debug Output:
Static_int = 1, sheet = DataInput
Static_int = 1, sheet = DataInput
Static_int = 1, sheet = DataInput
Static_int = 1, sheet = DataInput
Static_int = 1, sheet = DataInput
<runtime error "Unable to get the interior property of the Range class"


*** Sent via Developersdex http://www.developersdex.com ***
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
Unable to get the Interior property of the PlotArea class [email protected] Charts and Charting in Excel 2 September 3rd 08 03:41 PM
Unable to set FormulaArray property of the Range class [email protected] Excel Programming 2 October 17th 05 08:27 PM
unable to set the FormulaArray property of the Range class jim kozak Excel Programming 4 March 29th 05 02:15 PM
Unable to set the Locked property of the range class Stuart[_5_] Excel Programming 5 June 25th 04 03:32 PM
Unable to set the colorIndex Property of the Interior Class Error GriffyGriff Excel Programming 3 October 3rd 03 04:37 PM


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