• 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.

How to interpret the difference between the two lines of code.

Hi ,

I never expected so many errors in such simple code.

The End If and the End With are mixed up , as follows :
Code:
      End If
Beep
End With
They should be rearranged as follows :
Code:
      End With
Beep
End If
Narayan
 
Dear sir @NARAYANK991 ,

I added "With Activesheet" and "End With" & run... its working ..


but its made only "Italic" .. & only on columns "C"'s data
not process entire row 5 and below...all rows

also not process on I added ".Colo=vbRed" ...that also not work


Regards,
Chirag Raval
 
Dear Sir,

Many Thanks...
Its working...Perfect...As desired..

But how can we modify code , that its work on entire rows 5 & below
all rows from range of columns "A:L"...?

Regards,

Chirag Raval
 
Hi ,

Changing the line of code :

Set myrange = ActiveSheet.Range("A5", Cells(Rows.Count, 12).End(xlUp))

will change myrange to include all columns from A through L.

Narayan
 
Dear Sir,

Thank you very much

My modified & your constructed both works fine...

(1)My Modified

Set myrange = ActiveSheet.Range("A5:L5", Cells(Rows.Count, 3).End(xlUp))

WORKING OKAY

(2) Your constructed

Set myrange = ActiveSheet.Range("A5", Cells(Rows.Count, 12).End(xlUp))

also work amazingly..

Many thanks to you all expert to help..

Regards,
Chirag Raval
 
Dear Sir,

Thank you very much

My modified & your constructed both works fine...

(1)My Modified

Set myrange = ActiveSheet.Range("A5:L5", Cells(Rows.Count, 3).End(xlUp))

WORKING OKAY

(2) Your constructed

Set myrange = ActiveSheet.Range("A5", Cells(Rows.Count, 12).End(xlUp))

also work amazingly..

Many thanks to you all expert to help..

Regards,
Chirag Raval
You can also set a Conditional Format:

upload_2017-9-16_16-49-20.png

upload_2017-9-16_16-56-5.png
upload_2017-9-16_17-0-10.png

upload_2017-9-16_17-2-25.png

upload_2017-9-16_17-8-13.png

DONE!
 
Dear @EloiseT

Thank you very much for your valuable gude..
I wil try it in my dynamic code as per your attached files.

Definetly It will very helpful to all users who
In search for solutions for their this type of requirement.

I will reply soon after check.

Thanks again..

Regards,

Chirag Raval
 
Back
Top