If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Error 438

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-02-09, 11:06
Manhamanha Manhamanha is offline
Registered User
 
Join Date: Jun 2009
Posts: 4
Error 438

I have a table with changing lengths of the rows and columns. I want to make some formatting to the cells and I get error 438 - Object doesn't support this property or method when I try to execute the following code:

Code:
Sub ColorSet()

Dim cLL As Range, Rg As Range
'Set Rg = Range("A1:P10")
  Application.ScreenUpdating = False
 For Each cLL In Range("A1:P10")
  If IsEmpty(cLL) Then
   With cLL.Interior
   .ColorIndex = 0
   .Pattern = xlSolid
   End With
  Else
  With cLL.Interior
  .ColorIndex = 3
  .Pattern = xlSolid
  .LineStyle = xlContinuous
  End With
   End If
 Next cLL
 Application.ScreenUpdating = True
   
   End Sub
Any help would be appreciated.
Reply With Quote
  #2 (permalink)  
Old 06-03-09, 04:47
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
probably best to move this to the Excel forum
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old 06-03-09, 06:33
Manhamanha Manhamanha is offline
Registered User
 
Join Date: Jun 2009
Posts: 4
I got some help from the excelforum. We changed the procedure but it works fine. Thanks anyway for the help
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On