I created a procedure that writes a specific text in the cell is empty, but when this occurs the value entered is always "TRUE" can someone help?
VBA Code:
Public Sub WriteValues()
Ws = ActiveWorkbook.Sheets.Count
For counter = 1 To Ws
Worksheets(counter).Select
ActiveCell = Range("AC12").Select
If ActiveCell.Value = "" Then
ActiveCell.Value = "Date"
ActiveCell.HorizontalAlignment = xlRight
ActiveCell.Offset(0, 1).Select
ActiveCell.Value = "Time"
ActiveCell.HorizontalAlignment = xlRight
ActiveCell.Offset(0, 1).Select
ActiveCell.Value = "Value"
ActiveCell.HorizontalAlignment = xlRight
Else
End If
Range("AC13").Select
If ActiveCell.Value = "" Then
Call FillCells
Else
End If
Next
End Sub