I can read the answer

montecarlo2012

Well-known Member
Joined
Jan 26, 2011
Messages
986
Office Version
  1. 2010
Platform
  1. Windows
Hello, in this thread
may be I can find the answer I am looking for but I can read it
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
VBA Code:
Sub MG13May11()
Dim Rng As Range, Dn As Range, c As Long

SetRng = Range("C8:C20000")

For Each Dn In Rng
    c = c + 1
    If Dn.Value = "SL" Then
        Dn.Offset(, 1).Value = c: c = 0
    End If
Next Dn

End Sub
 
Last edited:
Upvote 2
Solution
VBA Code:
Sub MG13May11()
Dim Rng As Range, Dn As Range, c As Long

SetRng = Range("C8:C20000")

For Each Dn In Rng
    c = c + 1
    If Dn.Value = "SL" Then
        Dn.Offset(, 1).Value = c: c = 0
    End If
Next Dn

End Sub
I'm lost, this reply is identical as the answer in the post he referred.
So what's the problem montecarlo2012 had?
I was just stopped by, dmm
 
Upvote 0
He was finding it hard to read because of the old html tags in the original post. I cleaned it up for him that's all.
The code in the original post has been cleaned up by a Moderator now which is why you don't see the html tags that montecarlo2012 saw.
 
Upvote 1
@montecarlo2012 the poster isn't Japanese and it was a legitimate question as the tags have been tidied up now in the original post and so the issue wasn't visible to the poster
 
Upvote 0
thank you Mark, I see the japaneese is new he still don't know whats going on here
There is no need for that comment. Please refrain from making those type of comments in the future, especially when you post is confusing because it is filled with typos (for example, it should say "I CANNOT read the answer", not "I can read the answer").
 
Upvote 1
Dear forum members,
I would like to apologize for my recent behavior on this forum. I realize that my comments and questions may have come across as confrontational and inappropriate, and I regret any offense or disruption that I may have caused.
I understand that forums like this are meant to be a space for respectful discussion and exchange of ideas, and I should have been more mindful of this in my interactions with others. Instead of engaging in constructive dialogue, I allowed my frustration to get the best of me, and for that, I am sorry.
I also want to acknowledge that I may have contributed to the escalation of conflict by responding defensively or aggressively to others' reactions to my comments. This was not helpful or productive, and I recognize that I should have approached things differently.
Moving forward, I will make a conscious effort to communicate more respectfully and constructively on this forum. I will strive to listen to others' perspectives and engage in dialogue that is focused on understanding and learning, rather than winning arguments or proving a point.
Once again, I apologize for any harm that I may have caused, and I hope that we can all work towards creating a more positive and productive environment for discussion on this forum.
Sincerely,
Montecarlo2012
 
Upvote 1

Forum statistics

Threads
1,223,935
Messages
6,175,496
Members
452,649
Latest member
mr_bhavesh

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