Hi,
I am trying to improve on a manual process. I am new to VBA and use Excel 97. I need to find a cell that is formatted with ColorIndex = 19. It then needs to return that cell and some cell values in the same row but different columns...
Here is an example of how the data would appear:
Col A Col B Col C Col D Col E Col F
1 aaa bbb ccc 111 222 333
2 aab bbc ccd 444 555 666
3 aac bbd cce 777 888 123
4 aad bbe ccf 456 789 234
5 aae bbf ccg 878 657 221
6 aaf bbg cch 543 543 777
I am using bold, italics, underline, and the colour red (as it stands out better than yellow), to highlight the cells that would have a yellow format.
What I need is to find the yellow cell, and return its contents as well as the contents on the same row, which are in columns a b & c.
An example of the result, which would sit in a different sheet:
Col A Col B Col C Col D
1 aab bbc ccd 666
2 aaf bbg cch 777
Difficulty (if it isn't already!!):
The source data would be a moving target as the user uses filters or sorting. So I am guessing that you would maybe need to find the row and column reference of the yellow cell, before copying the other columns in the same row. I am guessing here....
Thanking you in advance.....
I am trying to improve on a manual process. I am new to VBA and use Excel 97. I need to find a cell that is formatted with ColorIndex = 19. It then needs to return that cell and some cell values in the same row but different columns...
Here is an example of how the data would appear:
Col A Col B Col C Col D Col E Col F
1 aaa bbb ccc 111 222 333
2 aab bbc ccd 444 555 666
3 aac bbd cce 777 888 123
4 aad bbe ccf 456 789 234
5 aae bbf ccg 878 657 221
6 aaf bbg cch 543 543 777
I am using bold, italics, underline, and the colour red (as it stands out better than yellow), to highlight the cells that would have a yellow format.
What I need is to find the yellow cell, and return its contents as well as the contents on the same row, which are in columns a b & c.
An example of the result, which would sit in a different sheet:
Col A Col B Col C Col D
1 aab bbc ccd 666
2 aaf bbg cch 777
Difficulty (if it isn't already!!):
The source data would be a moving target as the user uses filters or sorting. So I am guessing that you would maybe need to find the row and column reference of the yellow cell, before copying the other columns in the same row. I am guessing here....
Thanking you in advance.....