Results 1 to 12 of 12

Run time error 438, object doesnt support this property or method

Threaded View

  1. #1
    Registered User
    Join Date
    08-13-2013
    Location
    California, USA
    MS-Off Ver
    Excel 2010
    Posts
    66

    Run time error 438, object doesnt support this property or method

    I'm having some issues with my macro that previously worked perfectly I have no idea what is going on when I run it to consolidate my sheets named A-Z it stops after G and gives me an error that Run time error 438, This doesn't occur on my practice sheet only on my main workbook and the error is with the LR = .Cells(.Rows.Count, 8).End(xlUp).Row

    Sub integratie_Oeldere_revisted_vs3()
    
    'I got a lot of help from AB33, to get this code working; thanks for that AB33.
    
    Dim wsTest As Worksheet
    
    'check if sheet "Consolidated" already exist
    
    Const strSheetName As String = "Consolidated"
     
    Set wsTest = Nothing
    On Error Resume Next
    Set wsTest = ActiveWorkbook.Worksheets(strSheetName)
    On Error GoTo 0
     
    If wsTest Is Nothing Then
        Worksheets.Add.Name = strSheetName
    End If
    
    With Sheets("Consolidated")
        .UsedRange.ClearContents
        .Range("A1:I1").Value = Array("sheet", "Months", "Value1", "Value2", "Value3", "Value4", "value5", "value6", "value7")
        For Each Sh In Sheets
            With Sh
                If .Name <> "Consolidated" Then
                     LR = .Cells(.Rows.Count, 7).End(xlUp).Row
                    If LR >= 2 Then
                       Rng = .Cells.Find("*", , , , xlByRows, xlPrevious).Row - 1
                       NR = Sheets("Consolidated").Cells.Find("*", , , , xlByRows, xlPrevious).Row + 1
                       If Rng > 0 Then
                        Sheets("Consolidated").Cells(NR, 1).Resize(Rng) = .Name
                        Sheets("Consolidated").Cells(NR, 2).Resize(Rng, 32) = .Range("A2").Resize(Rng, 32).Value
                      End If
                   End If
                End If
            End With
        Next
        On Error Resume Next
    
        .Columns("A:Z").EntireColumn.AutoFit
    End With
    End Sub
    Last edited by 33CDonnelly; 10-02-2013 at 11:22 AM.
    The Truth shall set you free

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA Error: Object doesnt support the property or method
    By AntiPivotTable in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-30-2013, 12:25 AM
  2. Object doesnt support this property or method- error
    By kiran527 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-13-2012, 09:39 AM
  3. Run-time error '438': Object doesn't support this property or method
    By s3a in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 11-15-2012, 11:25 AM
  4. Run-Time Error 438: Object doesn't support this property or method
    By rodrigorpinto in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-02-2011, 02:21 PM
  5. Run-time error '438': Object doesn't support this property or method
    By ophelia in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-23-2007, 05:27 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1