Hi,
I'm having a little trouble finding what's wrong with my code. The code is used in this situation: in sheet "Pavedimai" user has to enter security's code. Then the project tries to find this code in sheet "Isin". If project finds security code in sheet "Isin", then it copies security's name from sheet "Isin" to sheet "Pavedimai". If project can't find security's name in sheet "Isin", then it posts message box.
Everything goes perfect in sheet "Pavedimai", but I have a lot of trouble trying to search VP code in sheet "Isin". The first problem was trying to force project to select range "A1" in sheet "Isin" because code
didn't work due to some reason. I overcame this issue by using code
instead.
The second problem is in line marked with the stars
.
Due to some reason code
remembers cell value in sheet "Pavedimai" although at this moment sheet "Isin" is selected. And I can't understand why this code is unable to select particular range in sheet "Isin" and remember that range value.
Does anyone of you have any ideas what's wrong with this code?
Bookmarks