Skip to content

Commit

Permalink
Update Formula.vb
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitosh committed Aug 17, 2017
1 parent 36dcfda commit 40d8424
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Formula.vb
Expand Up @@ -12,3 +12,19 @@ Public Sub PrintMeUsefulFormula()
Debug.Print strFormula

End Sub

'A bit untested, use with caution --------v
Public Sub PrintMeUsefulFormat()

Dim strFormula As String
Dim strParenth As String

strParenth = """"

strFormula = Selection.NumberFormat
strFormula = Replace(strFormula, """", """""")

strFormula = strParenth & strFormula & strParenth
Debug.Print strFormula

End Sub

0 comments on commit 40d8424

Please sign in to comment.