Problème d'affichage dans un textbox

  • Initiateur de la discussion Initiateur de la discussion sev
  • Date de début Date de début

Boostez vos compétences Excel avec notre communauté !

Rejoignez Excel Downloads, le rendez-vous des passionnés où l'entraide fait la force. Apprenez, échangez, progressez – et tout ça gratuitement ! 👉 Inscrivez-vous maintenant !

S

sev

Guest
Bonjour à tous ,
j'ai un problème d'affichage dans un textbox.
Je dois afficher le résultat d'une recherche d'une feuille dans un textbox. Or ce résultat est souvent concaténé (à la ligne) dans un cellule.

Voici le code pour le format des textbox :


Private Sub RunFormat_TextBox12(ByRef MyCell As Range)

With MyCell
With .Font
MyCellFont = .Name
MyCellFontSize = .Size
MyCellFontColor = .Color
MyCellBold = .Bold
MyCellItalic = .Italic
MyCellUnderLine = .Underline
MyCellValue = MyCell.Value
End With



With Me.TextBox12
With .Font
.Name = MyCellFont
.Bold = MyCellBold
.Italic = MyCellItalic
.Size = MyCellFontSize
.Underline = UnderLigneConvertor(MyCellUnderLine)
End With

.ForeColor = MyCellFontColor
.Value = Format(MyCellValue, "0# ##")
End With

Me.CommandButton2.Visible = True
End With
End Sub
Private Sub RunFormat_TextBox13(ByRef MyCell As Range)

With MyCell
With .Font
MyCellFont = .Name
MyCellFontSize = .Size
MyCellFontColor = .Color
MyCellBold = .Bold
MyCellItalic = .Italic
MyCellUnderLine = .Underline
MyCellValue = MyCell.Value
End With



With Me.TextBox13
With .Font
.Name = MyCellFont
.Bold = MyCellBold
.Italic = MyCellItalic
.Size = MyCellFontSize
.Underline = UnderLigneConvertor(MyCellUnderLine)
End With

.ForeColor = MyCellFontColor
.Value = Format(MyCellValue, "0# ##")
End With

Me.CommandButton2.Visible = True
End With
End Sub


Et en fichier joint la capture de l'userform ; mon problème est sur l'affichage des heures d'entrée et de sortie
 

Pièces jointes

- Navigue sans publicité
- Accède à Cléa, notre assistante IA experte Excel... et pas que...
- Profite de fonctionnalités exclusives
Ton soutien permet à Excel Downloads de rester 100% gratuit et de continuer à rassembler les passionnés d'Excel.
Je deviens Supporter XLD

Discussions similaires

Réponses
10
Affichages
1 K
Réponses
0
Affichages
800
Réponses
6
Affichages
2 K
Réponses
2
Affichages
512
Retour