Dear Mambers,
I have below VBA Code which run well but red marked code is not working means it is not entering the data in to "Dispatch" sheet
Regards,![]()
Please Login or Register to view this content.
Nandkumar S.
Dear Mambers,
I have below VBA Code which run well but red marked code is not working means it is not entering the data in to "Dispatch" sheet
Regards,![]()
Please Login or Register to view this content.
Nandkumar S.
Regards,
Nandkumar S.
---------------------------------------------------------------
Don't forget to Click on * if you like my solution.
Dear Members,
for more clarification pls find attached file. In this File I search for Thc No. details of thc displays in user form. But code for Entering the data in to Dispatch sheet is not working. pls look in to
If this line is meant![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
and trying to find the lastrow, you should remove set and change the name of the variable in to long, since Objects can only be set an objects![]()
Please Login or Register to view this content.
thanks for replying,
I have to insert data to Dispatch sheets which is found from data sheets, I am newbie in VBA. Can you please correct all code.
All the red line will disappear if you had corrected the top line
Replace
With![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Dear sir,
I tried this but not working. Kindly see attached file.
Regards,
Nandkumar S.
What is not working? I have not looked at the code itself, but spotted the error.
Okay
![]()
Please Login or Register to view this content.
Or you can use this short
Instead of these lines![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
I don't know why but it's not stamping the value in Dispatch Sheet
It does, I have tested it. See attached.
The code works for me as long as a valid THC number is entered and a match for it found in column B on 'data'.
Had to change 2 lines of code in the uploaded workbook to match the code in your first post.
In the workbook you had Sheets("Dispatch"). in front of both these lines which would cause an error and isn't needed - LastRow already refers to 'Dispatch'.
![]()
Please Login or Register to view this content.
If posting code please use code tags, see here.
Sorry Boss,
I am very very sorry to confusing to you. There was little mistake from my side. I have corrected it and now code is working fine.
Thanks a lot.
Regards,
Nandkumar S.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks