• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Run-time error '438':

Farout.DD

New Member
Hi Everyone,
The below script is returning a "Run-time error '438': Object doestn support this property or method"

The error is occuring on the line: last_useRrow = ActiveSheet("A" & Rows.Count).End(xlUp).Row + 1
Confusing because the line two above to set 'lastrowAdmin' is set up the exact same way, here and on other scripts and works ok.
Can anyone see what I am missing by any chance?

Dim WS1 As Worksheet, lastrowAdmin As Integer, rng2 As Range, rnG1 As Range, last_useRrow As Integer

lastrowAdmin = WS1.Range("L" & Rows.Count).End(xlUp).Row + 1

last_useRrow = ActiveSheet.Range("A" & Rows.Count).End(xlUp).Row + 1
 
Last edited by a moderator:
Hi, not confusing as you just forgot the Range object !​
And according to the max rows # so obviously use Long rather than Integer …​
 
Back
Top