I have this code that feeds my List box and then copy to clipboard.
The thing is that i would like to put in bold everything that is between "".
Between "", we have in the code below:
"Vendor Division: "
"Vendor name: "
So in the List1, i would see them as:
And after, when i copy to clipboard, i would still copy the format. What's in BOLD, it would copy in BOLD and what is not in BOLD would not be copied in BOLD.
How can i do that?
Thanks again for your help
Private Sub Command2_Click()
List1.AddItem "Vendor Division: " & vendor_div.Text
List1.AddItem "Vendor name: " & vendor_name.Text
Dim buf As String
Dim i As Long
For i = 0 To List1.ListCount - 1
buf = buf + List1.List(i)
buf = buf + vbCrLf