Use =Left Function in VBA to pull characters from adjacent cell

xcelnovice

Board Regular
Joined
Dec 31, 2011
Messages
81
Hello, I'd like to take the first 4 characters of a string from Col B starting in B3 and copy them to COl A all the way down to the end of the file. Here is what I have so far, this is the next step. Also any other tips/criticism on what i already have is welcomed

Sub FormatReport()
ActiveSheet.Copy After:=Sheets("Page1_1")
Range("A1").EntireColumn.Insert
Range("C1").Resize(, 2).EntireColumn.Insert
Range("A2").Value = "Proj"
Range("C2").Value = "Org List"
Range("D2").Value = "Org Group"
Range("B2").Copy
Range("A2").PasteSpecial xlPasteFormats
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
in A3 =left(B3,4), drag down

depends on how often you are doing it

you could record that in macro recorder
 
Upvote 0

Forum statistics

Threads
1,215,558
Messages
6,125,507
Members
449,236
Latest member
Afua

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