#1   Report Post  
Jeff
 
Posts: n/a
Default Run-Time Error 424

Hello,

I have an error msg: Run-Time Error 424 on this VBA procedu

If ActiveCell.Value = "SP" Then
Set CellWithValueToMatch = ActiveCell.Offset(0, -2).Value
--
Regards,
Jeff

  #2   Report Post  
Bryan Hessey
 
Posts: n/a
Default


.. just a guess, but

Range("A1").Value = Error(424) shows 'Object required'

could this mean that your ActiveCell is in column A or B ?



Jeff Wrote:
Hello,

I have an error msg: Run-Time Error 424 on this VBA procedu

If ActiveCell.Value = "SP" Then
Set CellWithValueToMatch = ActiveCell.Offset(0, -2).Value
--
Regards,
Jeff



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=473897

  #3   Report Post  
Bryan Hessey
 
Posts: n/a
Default


... just a guess, but

Range("A1").Value = Error(424) shows 'Object required'

could this mean that your ActiveCell is in column A or B ?



SECOND guess (after testing) is to try removing the word 'Set' and use

CellWithValueToMatch = ActiveCell.Offset(0, -2).Value


--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=473897

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
Time and motion chart deant Charts and Charting in Excel 0 September 21st 05 08:22 AM
Excel Time Manipulation BFiedler Excel Discussion (Misc queries) 0 September 15th 05 01:15 AM
conditional formatting with time values Access Idiot Excel Discussion (Misc queries) 2 September 13th 05 03:29 PM
Time Sheets smiller3128 New Users to Excel 1 August 4th 05 08:17 PM
unmet challenge boris Excel Worksheet Functions 2 March 16th 05 02:13 PM


All times are GMT +1. The time now is 10:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"