Hi Everyone,
I have a macro that mimics pressing F2 & Enter to reformat the cells.
it helps with converting numbers to Text and back.
however i'm getting a problem when i select from a higher row that the Lowest.
i.e. i click and drag from A10 to A5
Range A5:A10
but the active cell is still A10 instead of A5.
how can this be changed?
the Range can be anywhere from 5 cells to 10000 cells
I have a macro that mimics pressing F2 & Enter to reformat the cells.
Code:
Sub F2_Enter()
Dim NUM As Integer
Dim c As Range
On Error Resume Next
NUM = Application.InputBox(Prompt:="Repeat how many times?", Title:="Choose", Default:=Selection.Count, Type:=1)
Range(Cells(ActiveCell.Row, ActiveCell.Column), Cells(ActiveCell.Row + NUM - 1, _
ActiveCell.Column)).Select
For Each c In Selection
c.FormulaR1C1 = c.Value
Next
End Sub
it helps with converting numbers to Text and back.
however i'm getting a problem when i select from a higher row that the Lowest.
i.e. i click and drag from A10 to A5
Range A5:A10
but the active cell is still A10 instead of A5.
how can this be changed?
the Range can be anywhere from 5 cells to 10000 cells
Last edited: