Try this :
Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column = 2 And Target.Cells.Count = 1 Then If Target.Value <> "" Then Target.Offset(, 3).Activate End If End Sub On 12/14/11, dguillett1 <dguille...@gmail.com> wrote: > right click sheet tab>view code>copy/paste this>save file as .xls or .xlsm > to allow macros. > > Private Sub Worksheet_Change(ByVal Target As Range) > If Target.Count > 1 Or Target.Column <> 2 Then Exit Sub > Target.Offset(, 3).Select > End Sub > > > Don Guillett > SalesAid Software > dguille...@gmail.com > > From: hemal shah > Sent: Wednesday, December 14, 2011 6:24 AM > To: excel-macros@googlegroups.com > Subject: $$Excel-Macros$$ Cell editing VBA > > Question : In attached excel sheet, there are columns named "GRN" and "Recd > Qty"". > I want VBA code for Reced Qty column's cell .. as soon as GRN cell is filled > Recd Qty's cell is activatied, else no.. > > > > -- > FORUM RULES (934+ members already BANNED for violation) > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will > not get quick attention or may not be answered. > > 2) Don't post a question in the thread of another member. > > 3) Don't post questions regarding breaking or bypassing any security > measure. > > 4) Acknowledge the responses you receive, good or bad. > > 5) Cross-promotion of, or links to, forums competitive to this forum in > signatures are prohibited. > > NOTE : Don't ever post personal or confidential data in a workbook. Forum > owners and members are not responsible for any loss. > > ------------------------------------------------------------------------------------------------------ > To post to this group, send email to excel-macros@googlegroups.com > > -- > FORUM RULES (934+ members already BANNED for violation) > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will > not get quick attention or may not be answered. > > 2) Don't post a question in the thread of another member. > > 3) Don't post questions regarding breaking or bypassing any security > measure. > > 4) Acknowledge the responses you receive, good or bad. > > 5) Cross-promotion of, or links to, forums competitive to this forum in > signatures are prohibited. > > NOTE : Don't ever post personal or confidential data in a workbook. Forum > owners and members are not responsible for any loss. > > ------------------------------------------------------------------------------------------------------ > To post to this group, send email to excel-macros@googlegroups.com > -- Regards Rajan verma +91 9158998701 -- FORUM RULES (934+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com