Hi everyone,
I am new to VBA and this forum, so, please forgive me if I'm doing something work.
I have been fairly successful with what I am trying to write in VBA, but right now I need some help.
Basically, I've been trying to identify the cell number and row in a spreadsheet that matches a value on another spreadsheet.
The following worksheet function I found online and adapted seems to work perfectly:
=ADDRESS(SUMPRODUCT((Compilado!S3:AD33=Totais!U2)*ROW(Compilado!S3:AD33));SUMPRODUCT((Compilado!S3:AD33=Totais!U2)*COLUMN(Compilado!S3:AD33))).
However I am failing to write this in VBA. Does anyone know the VBA syntax for this or something equivalent??
Thanks in advance.
André
I am new to VBA and this forum, so, please forgive me if I'm doing something work.
I have been fairly successful with what I am trying to write in VBA, but right now I need some help.
Basically, I've been trying to identify the cell number and row in a spreadsheet that matches a value on another spreadsheet.
The following worksheet function I found online and adapted seems to work perfectly:
=ADDRESS(SUMPRODUCT((Compilado!S3:AD33=Totais!U2)*ROW(Compilado!S3:AD33));SUMPRODUCT((Compilado!S3:AD33=Totais!U2)*COLUMN(Compilado!S3:AD33))).
However I am failing to write this in VBA. Does anyone know the VBA syntax for this or something equivalent??
Thanks in advance.
André