Hello
I m looking for a vba that fill Column B with copies of Adjacent cells form Column A, the copying should stop when Cell in Column A is empty
Thanks
Hello
I m looking for a vba that fill Column B with copies of Adjacent cells form Column A, the copying should stop when Cell in Column A is empty
Thanks
Try this..
![]()
Please Login or Register to view this content.
If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
Mark your thread as Solved
If the suggestion helps you, then Click *below to Add Reputation
use the attached file.
Press CTRL+SHIFT+T for see your result
If it was really helpful to you then dont forget to hit * button for user reputation.
Regards
CA Mahaveer Somani
Hi Sixthsence Thanks for your reply it works perfect ..I actaully have a vlookup fmrmula VLOOKUP(RC[-1],Sheet2!R[1]C[-1]:R[14]C,2,FALSE that i need to copy down range B1:B ,,,thought I could easily modify the code but I can`t..
can you modify the code or do I need to creat a new thread ?
Thanks
Vlookup formula in Column-A or for column-B alone you are applying vlookup via vba code? please clarify....
yeah via vba code in cell B1 based on cell A1 and array sheet2 A:B range ...
Since I don't have expertisation with R1C1 reference so I replaced your formula reference to xlA1 reference for my convenience.
If you don't want to convert the formula cells as values then just remove this line from the below code rMyRng.Value = rMyRng.Value
![]()
Please Login or Register to view this content.
it works!!...Thank you
Glad it helps you and thanks for the feedback![]()
sorry one last question..how do I control on which sheet of the workbook the vba code works ?
as i written sheet1.activate, you can control from there any sheet.HTML Code:
if it was really helpful to you then dont forget to hit * button for user reputation.
Regards
CA Mahaveer Somani
Thank you..
nice to see you happy...
have a great day.
Regards
CA Mahaveer somani
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks