I found this excel addin, and I need to change the date format and locale, but when I use numberformat in the cell, the date format doesn't change:
Excel date addin
This si the code I am using:
Excel date addin
This si the code I am using:
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1" Then
Selection.NumberFormat = "[$-es-HN]dddd, dd"" de ""mmmm"" de ""yyyy;@\]"
End If
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$A$1" Then
Call CallDatePickerWithVBA
End If
End Sub
Sub CallDatePickerWithVBA()
Dim TestWkbk As Workbook
Dim obj As Object
If Val(Application.Version) >= 12 Then
Set TestWkbk = Nothing
On Error Resume Next
Set TestWkbk = Workbooks("WinDatePicker.xlam")
On Error GoTo 0
If TestWkbk Is Nothing Then
MsgBox "Sorry the Date Picker add-in is not open."
Else
Application.Run "'" & TestWkbk.Name & "'!OpenDatePicker", obj
End If
End If
End Sub