How to start a macro by entering a value in a cell?

cptkoble

New Member
Joined
Jul 28, 2002
Messages
29
Hi

I need to enter some information in rows. After entering info into the 8th column automatically a macro need to start to change italics to normal text, and move to the next row (first cell).

Anyone who can tell me how to achieve this?

Thanx
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Right click on the sheet tab name, select View Code, and paste this code in the resulting window.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)

    If Target.Column = 8 Then
        Target.Font.Italic = False
        Cells(Target.Row + 1, 1).Select
    End If
        
End Sub
This code will run automatically anytime anything is typed in column 8.
 
Upvote 0

Forum statistics

Threads
1,224,879
Messages
6,181,531
Members
453,054
Latest member
ezzat

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