Excel Tutorials | Formula Macro Code

Convert Date into Day

Convert Date into Day Sub date2day() Dim tempCell As Range Selection.Value = Selection.Value For Each tempCell In Selection If IsDate(tempCell) = True Then With tempCell

Read More »

Insert Time Range

Sub TimeStamp() Dim i As Integer For i = 1 To 24 ActiveCell.FormulaR1C1 = i & “:00” ActiveCell.NumberFormat = “[$-409]h:mm AM/PM;@” ActiveCell.Offset(RowOffset:=1, ColumnOffset:=0).Select Next i

Read More »

Activate R1C1 Reference Style

Sub ActivateR1C1() If Application.ReferenceStyle = xlA1 Then Application.ReferenceStyle = xlR1C1 Else Application.ReferenceStyle = xlR1C1 End If End Sub This macro code will help you to

Read More »

Activate A1 Reference Style

Sub ActivateA1() If Application.ReferenceStyle = xlR1C1 Then Application.ReferenceStyle = xlA1 Else Application.ReferenceStyle = xlA1 End If End Sub This macro code will help you to

Read More »

Reverse Text

Public Function rvrse(ByVal cell As Range) As String rvrse = VBA.strReverse(cell.Value) End Function All you have to do just enter “rvrse” function in a cell

Read More »