Display code in a special window in MrExcel Forum

Doflamingo

Board Regular
Joined
Apr 16, 2019
Messages
238
Hi all, :)

I know many of you use a specific window when you put the VBA code you use in that forum.

I would like to know how you do it .

Many thanks for your answer

Regards
 
Highlight your code and then click on the # sign in the menu. These are called code tags.
 
Code:
Private Sub CommandButton1_Click()


Dim emptyRow As Long


If TextBox1.Value = "" Or TextBox2.Value = "" Or TextBox3.Value = "" Or ListBox1.Value = "" Or ComboBox1.Value = "" Then
        MsgBox "Formulaire incomplet"
Else
        'Instructions pour insérer le contact ici ...
End If
TextBox1.ForeColor = RGB(0, 0, 0)
TextBox2.ForeColor = RGB(0, 0, 0)
TextBox3.ForeColor = RGB(0, 0, 0)
ListBox1.ForeColor = RGB(0, 0, 0)
ComboBox1.ForeColor = RGB(0, 0, 0)
 
Perfect @alansidman , it works !! Thank you
That is what the link I posted tells/shows you how to do (along with a few other options!)
;)
 

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top