Steps not recording in a MACRO

harwoodj

New Member
Joined
Feb 12, 2019
Messages
3
I have a report I run daily and wanted a macro to use on the formatting of that report. There are numbers that show up as text and if I click convert to numbers it does not record in the macro. So I tried the keyboard shortcut ALT+Menu+C and that did not work either. Any ideas on how to get these steps to record in the MACRO? Thanks!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
here is a macro that converts "numbers stored as text" in A2 to A100 to numbers

Code:
Sub ConvertToNumbers()
    Dim rng As Range
    Set rng = ActiveSheet.Range("A2:A100")
    With rng
        .NumberFormat = "General"
        .Value = .Value
    End With
End Sub
 
Last edited:
Upvote 0
Sorry. I should have pasted my Macro so you can see where/what I need for the conversion to numbers.

Sub AROWSReport()
'
' AROWSReport Macro
' formating of workday exectuion report
'
' Keyboard Shortcut: Ctrl+a
'
Rows("1:1").Select
Selection.Delete Shift:=xlUp
Range("F2").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select (AFTER THIS STEP IS WHERE I WANT TO CONVERT TO NUMBER)
ChDir _
"M:\MSG\145LRS\145LRS\(LGLO) Operations Compliance\3-RA\Resource Tracking\New Resource Tracker\2019\SOF"
ActiveWorkbook.SaveAs Filename:= _
"M:\MSG\145LRS\145LRS\(LGLO) Operations Compliance\3-RA\Resource Tracking\New Resource Tracker\2019\SOF\RAW AROWS.xlsx" _
, FileFormat:=xlOpenXMLWorkbook, CreateBackup:=False
Range("E4").Select
End Sub
 
Upvote 0
No problem

But try to remember to use code tags when posting code
- click on # icon above reply window, which adds code tags to the window

[ CODE ] and paste your code here [ /CODE ]

Hopefully this is what you want
Code:
Sub AROWSReport()
'
' AROWSReport Macro
' formating of workday exectuion report
'
' Keyboard Shortcut: Ctrl+a
'
    Rows("1:1").Select
    Selection.Delete Shift:=xlUp
    Range("F2").Select
    Range(Selection, Selection.End(xlDown)).Select
    Range(Selection, Selection.End(xlToRight)).Select
[COLOR=#008000]    With Selection
        .NumberFormat = "General"
        .Value = .Value
    End With[/COLOR]
    ChDir _
        "M:\MSG\145LRS\145LRS\(LGLO) Operations Compliance\3-RA\Resource Tracking\New Resource Tracker\2019\SOF"
    ActiveWorkbook.SaveAs Filename:= _
        "M:\MSG\145LRS\145LRS\(LGLO) Operations Compliance\3-RA\Resource Tracking\New Resource Tracker\2019\SOF\RAW AROWS.xlsx" _
        , FileFormat:=xlOpenXMLWorkbook, CreateBackup:=False
    Range("E4").Select
End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,621
Messages
6,120,563
Members
448,972
Latest member
Shantanu2024

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