Hello,
I have a list of phone numbers (US), such as:
123-4567
I am trying to create a simple macro that will add an area code to the beginning of the phone number such as “513-” and then move to the cell below. Here is my shot at the macro:
Sub AddAC()
‘
‘ AddAC Macro
‘ Macro recorded 8/8/2005 by Andy LaCombe
‘
‘ Keyboard Shortcut: Ctrl+a
‘
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = “513-bob”
ActiveCell.Offset(1, 0).Range(“A1”).Select
End Sub
All I did was record my steps and I know that this is wrong, as it will make the cells equal 513-bob, instead of adding 513- to bob. I know I need something to select the current cell (something like “with selection”), and then I need to be able to tell Excel to edit the cell, move to the first charcter and then add the desired area code.
I am clueless on how to get there. Any thoughts.
Thanks,
Andy