How to resolve Run-time Error '1004':Method 'Range' of Object_Worksheet' failed

Xin Yuan Lee 0 Reputation points
2024-02-16T03:38:02.09+00:00

Screenshot 2024-02-16 at 11.49.09 AM

I am trying to create an automated invoice that can save and update the details by using VBA code but i got the error "Run-time Error '1004':Method 'Range' of Object_Worksheet' failed" on this code:
Invlist.Cells(InvRow, InvCol).Value = .Range(Invlist.Cells(1, InvCol).Value).Value 'Save Invoice List Data

My full code is in the picture above Does anyone knows how to solve the error? Thank you

Microsoft 365 and Office Development Other
Microsoft 365 and Office Excel For business Windows
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.