Hello.
I have a code that uses the index match combo to set the cells value into the userForm, it works as expected.
Now I'm strugling trying to write a code that insert value into cells that are right next to the ones where the values came from.
here's the code I'm working
When I run it gets the "Runtime error 1004 - unable to get match property of worksheetfunction class" message.
So, I want to get a value from a userform and write this value on a cell using index match, 'cause it's a table that is updated frequently so I cannot use a fixed range.
Can anyone help me with this or tell me another way of achieving this?
I have a code that uses the index match combo to set the cells value into the userForm, it works as expected.
Now I'm strugling trying to write a code that insert value into cells that are right next to the ones where the values came from.
here's the code I'm working
ps = txtPS.Value
inicioreal = txtInicioReal.Value
Range(Application.WorksheetFunction.Index(Sheets("Projetos").Range("K1:k1000"), Application.WorksheetFunction.Match(ps, Sheets("Projetos").Range("A1:A1000"), 0))).Value = inicioreal
When I run it gets the "Runtime error 1004 - unable to get match property of worksheetfunction class" message.
So, I want to get a value from a userform and write this value on a cell using index match, 'cause it's a table that is updated frequently so I cannot use a fixed range.
Can anyone help me with this or tell me another way of achieving this?