Hi,
I would like to run a code that runs through all cells in column C (Title/Subtitle), Looks for the word "Title" and assigns the correct number in column A (Title), the number being integers (1, 2, 3 , 4.....).
Then I would like to do the same thing but look for subtitle in cell C and assign decimals in cell A (1.1, 2.1, 2.2, 2, 3.1 ecc) as appropriate.
I have created an example below of what my final table should look like. Basically i want it to auto populate column A(Title)
I was wondering if anyone could help me with some pointers, lines of code or what to think about. I'm just starting with VBA so any help would be much appreciated
Thank you
Mario
I would like to run a code that runs through all cells in column C (Title/Subtitle), Looks for the word "Title" and assigns the correct number in column A (Title), the number being integers (1, 2, 3 , 4.....).
Then I would like to do the same thing but look for subtitle in cell C and assign decimals in cell A (1.1, 2.1, 2.2, 2, 3.1 ecc) as appropriate.
I have created an example below of what my final table should look like. Basically i want it to auto populate column A(Title)
I was wondering if anyone could help me with some pointers, lines of code or what to think about. I'm just starting with VBA so any help would be much appreciated
Thank you
Mario
A | B | C |
Item | Description | Title/Subtitle |
1 | Main title | Title |
1.1 | subtitle | Subtitle |
| Text | |
2 | Main Title | Title |
2.1 | Subtitle | Subtitle |
2.2 | Subtitle | Subtitle |
3 | Title | Title |
| Text | |