I have an Excel file wich contains some data in a 2d array.
What I want to do is to create a macro which can replace the asterisk '*' by the header of the column of the table (toto, or tata, or titi).
I have an Excel file wich contains some data in a 2d array.
What I want to do is to create a macro which can replace the asterisk '*' by the header of the column of the table (toto, or tata, or titi).
Like this?
Using just worksheet tools (no VBA):
Ctrl-F
Find All
Ctrl-A
to select all the Find resultsClose
the Find dialog=C$2
Ctrl-Enter
Here is a simple way I came up with.
Cells(x,y): x refers to row, y refers to column.
A more refined range select can be used instead of this basic one to have the code choose the appropriate range.
To implement in excel simply open up the code window and paste this code in the desired macro/subroutine.