K0st4din
Well-known Member
- Joined
- Feb 8, 2012
- Messages
- 501
- Office Version
- 2016
- 2013
- 2011
- 2010
- 2007
- Platform
- Windows
Hello, everyone,
please for your help, for a macro that i do not know how to do.
I have 15 worksheets with specific names (peaches, tomatoes, apples, etc.).
In each of them all cells are made - the text in them is red. But in each worksheet, the length of the rows is different: for example: in "Apples" - is up to 564 lines, in Peaches - is up to 125, Tomatoes - is up to 1250.
I'm looking for a way, with a macro, after pressing the macro button, each free next line, more precisely a cell in column B:B, to write - "FINISH" and be black in the text.
From the example given: In "Apples" - cell B565, "Peaches" - cell B126, in "tomatoes" - cell B1251
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]sheet Apples[/TD]
[TD]sheet Peaches[/TD]
[TD]sheet tomatoes[/TD]
[/TR]
[TR]
[TD]text[/TD]
[TD]text[/TD]
[TD]text[/TD]
[/TR]
[TR]
[TD]text[/TD]
[TD]text[/TD]
[TD]text[/TD]
[/TR]
[TR]
[TD]text[/TD]
[TD]text[/TD]
[TD]text[/TD]
[/TR]
[TR]
[TD]text[/TD]
[TD]text[/TD]
[TD]FINISH[/TD]
[/TR]
[TR]
[TD]text[/TD]
[TD]text[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]text[/TD]
[TD]text[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FINISH[/TD]
[TD]text[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]text[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]text[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]FINISH[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thank you all in advance!
please for your help, for a macro that i do not know how to do.
I have 15 worksheets with specific names (peaches, tomatoes, apples, etc.).
In each of them all cells are made - the text in them is red. But in each worksheet, the length of the rows is different: for example: in "Apples" - is up to 564 lines, in Peaches - is up to 125, Tomatoes - is up to 1250.
I'm looking for a way, with a macro, after pressing the macro button, each free next line, more precisely a cell in column B:B, to write - "FINISH" and be black in the text.
From the example given: In "Apples" - cell B565, "Peaches" - cell B126, in "tomatoes" - cell B1251
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]sheet Apples[/TD]
[TD]sheet Peaches[/TD]
[TD]sheet tomatoes[/TD]
[/TR]
[TR]
[TD]text[/TD]
[TD]text[/TD]
[TD]text[/TD]
[/TR]
[TR]
[TD]text[/TD]
[TD]text[/TD]
[TD]text[/TD]
[/TR]
[TR]
[TD]text[/TD]
[TD]text[/TD]
[TD]text[/TD]
[/TR]
[TR]
[TD]text[/TD]
[TD]text[/TD]
[TD]FINISH[/TD]
[/TR]
[TR]
[TD]text[/TD]
[TD]text[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]text[/TD]
[TD]text[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FINISH[/TD]
[TD]text[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]text[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]text[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]FINISH[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thank you all in advance!