• We are receiving reports of members using the private messaging service (Conversations) in ways that break the forum rules:
    • Do not invite another member to take the question off the forum (i.e. do not suggest that they post to a different forum, do not suggest that they email or private message you the problem, do not simply post a link to another forum, unless it is to a specific, relevant, thread). This applies equally to members asking or answering questions.
    • Soliciting business for yourself is not permitted. This is an all volunteer board, so offering solutions in exchange for compensation is not permitted. Likewise, members seeking solutions must not offer compensation for them. If you have an urgent need, check the Consulting Services page.
    Please help us out by clicking the Report link on any messages you receive that violate these rules. Thank you
  • If you would like to post, please check out the MrExcel Message Board FAQ and click here to register.
    If you forgot your password, you can reset your password.

concatenate code I get run time Error

AT BABU

New Member
Joined
Oct 12, 2018
Messages
48
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
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
30,304
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
30,304
Office Version
365
Platform
Windows
You're welcome & thanks for the feedback
 

Forum statistics

Threads
1,077,965
Messages
5,337,441
Members
399,147
Latest member
Raviteja KOTHA

Some videos you may like

This Week's Hot Topics

Top