posted by: avinash (rep: 10) on Mon Aug 26, 2019 at 7:45 am
Answer
Discuss
no
Discussion
"Topic closed" comes across as a bit rude Avinash. You asked a question. Ken helped you out. You didn't accept the answer, made an unrelated complaint (your runtime error 1004 is not caused by the line that Ken correctly suggested in answer to your question). Instead of saying thank you you delete your question and create a topic "Topic closed". That's not the way to make friends.
Mam that was not my intention u know i am not that type of guy I wanted to delete the question but i was unable to delete it so i mentioned topic closed bcoz no one waste there precious time in this post bcoz i found an alternative way to the same i am changing my file to make it simple Sorry for the same this will not be repeated in future
'With Wbk1.Sheets("sheet1")
With Wbk1.WorkSheets(1)
posted by: KenHobson (rep: 55) on Mon Aug 26, 2019 at 3:58 pm
Answer
Discuss
no
Discussion
Run time error 1004
application defined or object defined error
Ary = .Range("B2", .Range("B" & Rows.Count).End(xlUp).Offset(, 8)).Value2
this line is highlighted
I have added sample files plz have a look price.xlsx is 1.xls and leverage.xlsx is leverage.xlsx vba code will be placed in a seperate file macro.xlsm code has to open that file and it should do the process and save and close all the file If column A of price.xlsx matches with column A of leverage.xlsx then copy column G of price.xlsx and paste it to column F of leverage.xlsx all files are located in same place the code which i sent is perfect or not perfect so plz if new code is required then plz provide the same