m_a_advisoryforall
New Member
- Joined
- May 15, 2024
- Messages
- 1
- Office Version
- 365
- Platform
- Windows
Good afternoon everyone!
I am currently rebuilding a CRM system from the internet. Right now I am working on the part which is supposed to load the contacts from one range to another when selected (as shown on the screenshot). This is where I run into problems. I get following error displayed:
Error: Run-time error 1004: Application-defined or object-defined error
Code:
Sub Contact_Load()
Dim ContRow As Long, ContCol As Long
With Sheet1
.Range("B13").Value = True 'Set Contact load to True
ContRow = .Range("B12").Value 'Contact Row
For ContCol = 14 To 17
.Range(.Cells(36, ContCol).Value).Value = .Cells(ContRow, ContCol).Value 'Contact details
Next ContCol
.Range("B13").Value = False 'Set contact load to false
End With
End Sub
Excel shows that the error is supposed to be in the yellow marked line.
Also here is the link to the video of the CRM-system I am rebuilding:
I appreciate every help. Many thanks in advance!
I am currently rebuilding a CRM system from the internet. Right now I am working on the part which is supposed to load the contacts from one range to another when selected (as shown on the screenshot). This is where I run into problems. I get following error displayed:
Error: Run-time error 1004: Application-defined or object-defined error
Code:
Sub Contact_Load()
Dim ContRow As Long, ContCol As Long
With Sheet1
.Range("B13").Value = True 'Set Contact load to True
ContRow = .Range("B12").Value 'Contact Row
For ContCol = 14 To 17
.Range(.Cells(36, ContCol).Value).Value = .Cells(ContRow, ContCol).Value 'Contact details
Next ContCol
.Range("B13").Value = False 'Set contact load to false
End With
End Sub
Excel shows that the error is supposed to be in the yellow marked line.
Also here is the link to the video of the CRM-system I am rebuilding:
I appreciate every help. Many thanks in advance!