Vba code not working anymore

jamesdean1379

Board Regular
Joined
Jun 11, 2014
Messages
55
Hey guys, i was using the below code to insert new column and combine two columns into the new column while adding some text between the inserts but went to run it today and all of the sudden its not working anymore, i tried playing around with it and using good ol' google to try and figure it out, but i cant. Any help will be much appreciated.

ORIGINAL CODE
Code:
Sub Combine()
    Dim lLastRow As Long
    lLastRow = Range("A" & Rows.Count).End(xlUp).Row
    Columns("B").Insert
    Range("B1") = "Combine"
    Range("B2:B" & lLastRow).FormulaR1C1 = "=RC[-1] & ""~NU"" & RC[1]"
End Sub

BEFORE
before.jpg


AFTER
after.jpg
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,215,798
Messages
6,126,974
Members
449,351
Latest member
Sylvine

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