How to resolve Run-time Error '1004':Method 'Range' of Object_Worksheet' failed
Xin Yuan Lee
0
Reputation points
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 | Development | Other
Building custom solutions that extend, automate, and integrate Microsoft 365 apps.
Microsoft 365 and Office | Excel | For business | Windows
Microsoft 365 and Office | Excel | For business | Windows
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Sign in to answer