+ Reply to Thread
Results 1 to 4 of 4

Macro from moving from column 12 to the next row of column 5 not working

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-07-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    256

    Macro from moving from column 12 to the next row of column 5 not working

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Column = 17 Then
    Range("E" & Target.offset(1,0).Row).Select
    End If
    End Sub
    Dear Friends

    I have one simple task like when i move from column E to column q and press enter it
    should go to the next row Eth column i wrote the macro but it is not working
    plz help me to correct the macro
    Last edited by catchnanan; 08-05-2013 at 06:04 PM.

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,414

    Re: Simple macro not working

    Your macro will work only if you change the value of the cell in column Q.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,238

    Re: Simple macro not working

    Works for me. Have you got Macros enabled? Is the code in the Worksheet Class module for the worksheet where you are making changes?

    Just pressing Enter in column Q won't work as it won't be seen by Excel as a change to the cell. You can press F2 and Enter or you would need to type in the cell.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Contributor
    Join Date
    07-07-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    256

    Re: Simple macro not working

    My Dear friends

    Thank u so much for your quick response
    Now only i have started to learn vb codes and it is my very first macro attempt.i am good at using formulas.
    But only codes seem to give a better and greater control and provide a lot of options
    How can i learn codes can you please kindly help me i want to learn vb codes
    I am not into software side I am working in a bank only i am very curious about learning excel codes

    Nana

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Simple concatenation in macro not working...
    By cboshdave in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-02-2012, 11:11 PM
  2. [VBA] Simple Formatting Macro not working?
    By D00kie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-05-2011, 06:31 PM
  3. Why isn't this simple macro working?
    By larryg003 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-19-2010, 05:44 PM
  4. simple macro only working..sometimes
    By JChandler22 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-19-2010, 09:38 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1