Hello everybody.
In the attached workbook there is a formula cerca.vert
is it possible to turn it into a macro at each new insertion in the range L7:L31 ?Please Login or Register to view this content.
Thank you.
xam
Hello everybody.
In the attached workbook there is a formula cerca.vert
is it possible to turn it into a macro at each new insertion in the range L7:L31 ?Please Login or Register to view this content.
Thank you.
xam
If you mean extending the formula when you insert a row, no macro needed
Make your range an Excel Table, and any added row will create the formula automatically
Hi peppe le mokko
I don't mean what you say.
I ask to translate the formula into a macro at each insertion
Hi,
i made this macro but it doesn't work
it must work in the range L7:L31 and return the value in B7:B31.Please Login or Register to view this content.
xam
Do you mean like this?
Please Login or Register to view this content.
Last edited by jindon; 10-24-2020 at 09:07 AM. Reason: Fixed a typo
In L7:L31 there is nothing
It uses Change event, like your code, so it only works when you change any cell in L7:L31 (got typo in my code, L2:L31)
Enter any thing in blank cell, so that you will see.
I'm probably doing something wrong.
I did as you say (I hope) but it doesn't change.
Write in B7: B31 the result in cells L7: L31
Try
1) Clear L7:L31 in S1 sheet
2) Enter 123460 in any cell in L7:L31
3) You should see the result in Col.B in S1 sheet.
Above is working here.
tried several times in B7: B31 nothing comes out
No result, no error?
Don't know why...
try change to
Please Login or Register to view this content.
Last edited by jindon; 10-24-2020 at 09:48 AM.
I wonder if Events are disabled.
Try the attached.
I don't know nothing comes out of me
See my previous post.
tried # 12 doesn't work on me
I can not test this.
Not sure if you need to change semi-column ";" to a comma "," in the formula.
Please Login or Register to view this content.
I shut down and restarted the computer, now everything works.
Thanks jindon
Yeah, it should...
Please don't forget to mark the thread as [SOLVED].
I moved the data_base to test and changed here
r(, -9) = WorksheetFunction.IfError(Application.VLookup(r, _
Sheets("data_base").Columns("D:I"), 5, False), "v.n.d")
but non work, where am i wrong?
5 should be 6
Please Login or Register to view this content.
Thanks you jindon
Administrative Note:
Unfortunately, this is a duplicate thread, and you are allowed only ONE thread per issue here.
Please see Forum Rule #5 about thread duplication.
I am closing this thread, but you may continue here in the original thread: https://www.excelforum.com/excel-pro...e-vlookup.html
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks