Belair58
Board Regular
- Joined
- Mar 31, 2005
- Messages
- 95
Hello,
I have thousands of records that came out with really crappy formatting.
BESBAN Best Banner Sign
LAURA TUCKER Yes
LAURA TUCKER-2 Yes
ROCHELLE BROGLER Yes
ROCHELLE BROGLER-2 Yes
BESEEN BeSeen Today.Com
BESNEO Best Neon
STEVE GOLDZWEIG Yes
I need to look for the first record that have Yes and then look above it for the first record that isn't yes. Copy that record and paste that value over the Yes. So in the example Laura Tucker thru Rochelle Brogler-2 would be Best Banner Signs in column 2, and Steve GoldWeig would have Best Neon in column 2.
Private Sub CopyNames()
For i = 2 to a
If Worksheets("Worksheet1".cells(i,2).Value = "Yes" Then
Here's where I need help, how do I tell it to look for the next cell above that doesn't contain "Yes"?
Thanks for any help you can give me.
I have thousands of records that came out with really crappy formatting.
BESBAN Best Banner Sign
LAURA TUCKER Yes
LAURA TUCKER-2 Yes
ROCHELLE BROGLER Yes
ROCHELLE BROGLER-2 Yes
BESEEN BeSeen Today.Com
BESNEO Best Neon
STEVE GOLDZWEIG Yes
I need to look for the first record that have Yes and then look above it for the first record that isn't yes. Copy that record and paste that value over the Yes. So in the example Laura Tucker thru Rochelle Brogler-2 would be Best Banner Signs in column 2, and Steve GoldWeig would have Best Neon in column 2.
Private Sub CopyNames()
For i = 2 to a
If Worksheets("Worksheet1".cells(i,2).Value = "Yes" Then
Here's where I need help, how do I tell it to look for the next cell above that doesn't contain "Yes"?
Thanks for any help you can give me.