Is there any macro?
Is there any macro?
Please read the rules, crosst posting not allowed unless you provide the links.
Cross posted on ozgrid:
http://www.ozgrid.com/forum/showthread.php?t=73409
firstly, don't forget to amend your original post to include a reference to any other forum you have posted this question to.Originally Posted by seanyeap
A macrowould do that.![]()
Sub Macro1() ' Dim I As Long, iLastRow As Long iLastRow = ActiveSheet.Range("A65536").End(xlUp).Row For I = 1 To iLastRow If Cells(I, 8).Interior.Pattern = xlGray16 Then Cells(I, 9).Value = 2 Else: Cells(I, 9).Value = "" End If Next End Sub
---
Si fractum non sit, noli id reficere.
Hi Bryan Hessey,
I am really thankful for your help
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks