Hello,
I have searched the forum for any macro resembling the one I am trying to create but no luck...
I am not an expert in VBA but I know other programming languages so the algorithm I am trying to create is clear but I lack the knowledge in Excel macro syntax to make it work...
Basically what I want to do is make a macro that searches for a specific string, which will be "CODE A" and then fills the cell containing "CODE A" (basically a find and replace) and the cells under with specific content.
For example : cell A1 contains "CODE A", I want the macro to fill cell A1 with "fubar1", A2 with "fubar2" and so on until A5.
An English version of the code would be :
search for "CODE A"
var = cell of "CODE A"
fill cell var with "fubar1"
fill cell under var with "fubar2" (I believe there is an "offset" function that does something like that...)
...
Any help would be greatly appreciated :D
Thanks in advance for your answers
PS : Sorry for any grammar/spelling mistakes, English is not my native language.
I have searched the forum for any macro resembling the one I am trying to create but no luck...
I am not an expert in VBA but I know other programming languages so the algorithm I am trying to create is clear but I lack the knowledge in Excel macro syntax to make it work...
Basically what I want to do is make a macro that searches for a specific string, which will be "CODE A" and then fills the cell containing "CODE A" (basically a find and replace) and the cells under with specific content.
For example : cell A1 contains "CODE A", I want the macro to fill cell A1 with "fubar1", A2 with "fubar2" and so on until A5.
An English version of the code would be :
search for "CODE A"
var = cell of "CODE A"
fill cell var with "fubar1"
fill cell under var with "fubar2" (I believe there is an "offset" function that does something like that...)
...
Any help would be greatly appreciated :D
Thanks in advance for your answers
PS : Sorry for any grammar/spelling mistakes, English is not my native language.