KlausW
Active Member
- Joined
- Sep 9, 2020
- Messages
- 458
- Office Version
- 2016
- Platform
- Windows
Hi everyone In an Msg box, some information from some cells has, see the VBA code.
This works well, but when the cells are empty a zero appears in the Msg box see image, can I hide them?
Any help will be appreciated
Best regards Klaus W
This works well, but when the cells are empty a zero appears in the Msg box see image, can I hide them?
Any help will be appreciated
Best regards Klaus W
VBA Code:
Sub Afrundetrektangel1_Klik()
If Range("ai52") = 0 Then Range("ai75") = ""
MsgBox Range("Ai52") & vbNewLine & Range("Ai53") & vbNewLine & Range("Ai54") & vbNewLine & Range("Ai55") & vbNewLine & Range("Ai56") & vbNewLine & Range("Ai57") & vbNewLine & Range("Ai58") & vbNewLine & Range("Ai59") & vbNewLine & Range("Ai60") & vbNewLine & Range("Ai61") & vbNewLine & Range("Ai62") & vbNewLine & Range("Ai63") & vbNewLine & Range("Ai64") & vbNewLine & Range("Ai65") & vbNewLine & Range("Ai66") & vbNewLine & Range("Ai67") & vbNewLine & Range("Ai68") & vbNewLine & Range("Ai69") & vbNewLine & Range("Ai70") & vbNewLine & Range("Ai71") & vbNewLine & Range("Ai72") & vbNewLine & Range("Ai73") & vbNewLine & Range("Ai74") & vbNewLine & Range("Ai75"), , "Symbol oversigt tjeneste-frihed"
Sheets(Format(Now, "mmmm")).Select
End Sub