simonharry
New Member
- Joined
- Jun 17, 2016
- Messages
- 8
Morning All,
Happy Friday!
So I am trying to create a macro that will use a pre determined string of text and then at 3 different points, insert the contents of 3 cells on the worksheet.
So far I have the following but I have hit a wall.
Sub Macro2()
'
' Macro2 Macro
'
'
Range("A1").Select
ActiveCell.FormulaR1C1 = _
"I am part 1 of the text " &G15& " i am part two " &G16& " I am part three" &G17& " and I am the last bit."
Range("A2").Select
End Sub
As you can see, cells G15, G16 and G17 are where the text I have entered needs to be picked up from and inserted.
Any help anyone can offer would be enormously appreciated.
Thanks in advance.
Happy Friday!
So I am trying to create a macro that will use a pre determined string of text and then at 3 different points, insert the contents of 3 cells on the worksheet.
So far I have the following but I have hit a wall.
Sub Macro2()
'
' Macro2 Macro
'
'
Range("A1").Select
ActiveCell.FormulaR1C1 = _
"I am part 1 of the text " &G15& " i am part two " &G16& " I am part three" &G17& " and I am the last bit."
Range("A2").Select
End Sub
As you can see, cells G15, G16 and G17 are where the text I have entered needs to be picked up from and inserted.
Any help anyone can offer would be enormously appreciated.
Thanks in advance.