Hello
I want to get the first line of each set of white/gray colored lines (such as circled in the image)
I couldn't think of any way of doing it but manually. Is there any way to automate this?
Thank you for you attention!
example.png
Hello
I want to get the first line of each set of white/gray colored lines (such as circled in the image)
I couldn't think of any way of doing it but manually. Is there any way to automate this?
Thank you for you attention!
example.png
Could you provide the actual sheet as the formatting is not clear from the image.
It's nice to see a question involving the Gene ontology
Martin
forgot attachment
I'm just going to slip my solution in before Martin returns with what I assume will be a better one. (I'm just trying to learn by experimenting with some of the easier issues out here.) The tricky part for me is identifying the shading. Interior.Color = 15724527 worked with my code. The macro just puts a border around each head-row, but in that spot, having identified the row, you can add any code you want to do what you need to with the rows.
Please Login or Register to view this content.
Last edited by Jeff Ho; 05-28-2018 at 04:03 PM.
Jeff Ho,
thank you very much! it works nicely, the only issue is that it encircles both elements in sets with 2 elements like pic (my bad for not posting more sets in the example sheet!)
example2.png
I will try to find a code that deletes elements with no border! thank you very much!
Last edited by jeffreybrown; 05-28-2018 at 07:55 PM. Reason: Removed full quote!
Hmmm. Too bad the company just arrived, I can't check it now. But I'm very interested to find out why it's doing that. If I figure out how to correct it I'll re-post.
As it turns out, the company is late…
I found a different error (“r” was confusing row # and offset), but I don’t think the macro is selecting both elements of a two-element set. It just looks like that because the rows are adjacent. When I change the border action to making the font red, it shows that only one row is indicated.
Please Login or Register to view this content.
Thank you! that worked like a charm!! Now I am currently trying to delete the rows with blue letters and getting my *** handed to me
Please Login or Register to view this content.
Sorry I can't be available to help you work through this right now, but the main thing is that it isn't as simple as naming a color. There are only a few color constants and they begin with "vb" (e.g. vbRed, vbBlack, etc.). Also, they apply to the Color property, not the ColorIndex property. (It's confusing!)
In Module 1 add this:
Then select a cell with the blue color font and run the macro. I got ColorIndex 23, but do it yourself to be sure. Then use that index # to identify the blue font rows.Please Login or Register to view this content.
Absolutely excellent! It worked perfectly, you have no idea how happy I am for not having to do that manually hahah
Thanks Jeff and Mrice!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks