NessPJ
Active Member
- Joined
- May 10, 2011
- Messages
- 413
- Office Version
-
- 365
Hi,
I am trying to make a selection using the following VBA:
BeginRange and EindRange are both strings containing a rownumber.
I keep getting a Debug error "Select method of Range class failed". What am i doing wrong?
I am trying to make a selection using the following VBA:
Code:
ThisWorkbook.Sheets("Data Invoer").Range("C" & BeginRange & ":" & "D" & EindRange).Select
Selection.Copy
Worksheets("Database").Range("B" & LastRowDatabase).PasteSpecial Paste:=xlPasteValues
BeginRange and EindRange are both strings containing a rownumber.
I keep getting a Debug error "Select method of Range class failed". What am i doing wrong?