application defined or object defined error. Please help

whcmelvin

Board Regular
Joined
Jul 27, 2011
Messages
82
The Code below show me a run time error application defined or object defined. The Red part is the part that cause the error. Please help
Code:
Application.ScreenUpdating = False
    
    Sheets("Sheet1").Select
    Range("A1").Activate

    Cells(1, 1).Activate
    Do
       [COLOR="Red"] ActiveCell.Offset(1, 0).Select[/COLOR]
    Loop Until ActiveCell.Value = EmailForget.Value
    RowCount1 = ActiveCell.Row

    Range("J" & RowCount1).Select
    if
    SecurityQnForget.Value = Range("J" & RowCount1).Value
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Does it happen the first time through the loop or has the active cell moved down off row 1 by the time the error occurs?

You can determine this by stepping through the code using the F8 key whilst you watch the worksheet - turn screen updating on whilst you do this - or you can place this statement as the first thing inside the loop and watch the Immediate window (Ctrl-G):-
Code:
Debug.Print Now(), ActiveCell.Row
 
Upvote 0
Hi i have tried the above. then i debug step by step, the the i had worked perfectly.
However, when i open the userform and tried to enter something, the gave me an error

Method "select" of object "range" fail.
 
Upvote 0
Perhaps you'd better post the entire subroutine which contains the statement which raises the error.
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,849
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top