concatenate code I get run time Error

AT BABU

Board Regular
Joined
Oct 12, 2018
Messages
53
Office Version
2016
Platform
Windows
Hi All
Sub concatenate()
Dim a As String: a = "L:\OWL\Work"
Dim b As String: b = "\jobs"
Dim c As String
Dim d As String
c = Cells(0, 3).Value
d = a & c & b
Worksheets("sheet 2").Cells(1, 5).Value = d
End Sub
 

Some videos you may like

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
36,075
Office Version
365
Platform
Windows
You cannot have Cell(0,3) because there is no row 0.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
36,075
Office Version
365
Platform
Windows
You're welcome & thanks for the feedback
 

Watch MrExcel Video

Forum statistics

Threads
1,090,354
Messages
5,413,963
Members
403,511
Latest member
Emmanuel John

This Week's Hot Topics

Top