Concanate problem

PANKAJUTEKAR

Board Regular
Joined
Jun 10, 2011
Messages
79
All Experts,
Hi..

j = col B

Function concatenate()
Dim i As Integer, j As Integer
Do Until j = 18
i = 2.................rowindex
j = 3.................colindex
Cells(i, j) = Cells(3, 2)........range("b3")
ActiveCell.FormulaR1C1 = "=concatenate(""P-"",cell(3,2))"
j = j + 1
Loop
End Function

Private Sub Workbook_Open()
Call concatenate
End Sub

Wht i tryed, in my col A is blank.
col b contains some tags like -
01H001A-M01
01H001A-M02
01H001A-M03 and more.

i got an error 1004...for -
ActiveCell.FormulaR1C1 = "=concatenate(""P-"",cell(3,2))"

So, how do i concatenate P- with respective cells automatically?
 
ok
=====

this is not working but,
its done ... b3
it should come down but coming doen for next value...\
let me check once.
 
Upvote 0

Excel Facts

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

Forum statistics

Threads
1,224,518
Messages
6,179,248
Members
452,900
Latest member
LisaGo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top