ted.martin
Registered User.
- Local time
- Today, 18:46
- Joined
- Sep 24, 2004
- Messages
- 743
I have a line of VBA code as follows with works fine:
In the Excel spreadsheet the cell formula reads
=VLOOKUP(B4,'[SFE macro Remittance.xlsm]SITS'!$A$2:$C$25727,2,FALSE)
This works correctly and gives the correct value in the cell.
My problem is I need to Excel spreadsheet cell to show
=VLOOKUP(B3,'[SFE macro Remittance.xlsm]SITS'!$A$2:$C$25727,2,FALSE) & "B"
If I manually amend the cell formula then the result is correct but I need to incorporate the & "B" into the VBA code.
I have tried various syntax to add the extra & "B" to the VBA code without success.
Can anyone help please? Thanks
Code:
Cells(2, iCol + 1).Value = "=VLOOKUP(B2,'[SFE macro Remittance.xlsm]SITS'!$A$2:$C$" & iDataRow & ",2,FALSE)"
In the Excel spreadsheet the cell formula reads
=VLOOKUP(B4,'[SFE macro Remittance.xlsm]SITS'!$A$2:$C$25727,2,FALSE)
This works correctly and gives the correct value in the cell.
My problem is I need to Excel spreadsheet cell to show
=VLOOKUP(B3,'[SFE macro Remittance.xlsm]SITS'!$A$2:$C$25727,2,FALSE) & "B"
If I manually amend the cell formula then the result is correct but I need to incorporate the & "B" into the VBA code.
I have tried various syntax to add the extra & "B" to the VBA code without success.
Can anyone help please? Thanks