+ Reply to Thread
Results 1 to 5 of 5

Offset after the 2 columns.

  1. #1
    Forum Contributor
    Join Date
    10-02-2014
    Location
    Philippines
    MS-Off Ver
    MAC MS office 2019
    Posts
    121

    Offset after the 2 columns.

    Hi,

    I need your small help guys.

    I get this code from this forum. i need something to add the code for offset in the 2 column only. like this sample.Screen Shot 2019-06-12 at 9.03.48 PM.jpg

    only 2 columns (C and D). after I enter the name in Column C3 & D3 automatic return in C4 after I press the enter.

    here the code:
    Please Login or Register  to view this content.

    Please need your help guys.

    Thanks

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Offset after the 2 columns.

    Perhaps this.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    10-02-2014
    Location
    Philippines
    MS-Off Ver
    MAC MS office 2019
    Posts
    121

    Re: Offset after the 2 columns.

    Thanks Paul for you quickly response.

    One more help. same but different code. I need in column A and B only then return in A2 when i press enter. see below code.
    Please Login or Register  to view this content.

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Offset after the 2 columns.

    So if you make any change in columns A or B, you want the active cell to be A2 afterward? Then adjust the If statement like so:
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    10-02-2014
    Location
    Philippines
    MS-Off Ver
    MAC MS office 2019
    Posts
    121

    Re: Offset after the 2 columns.

    where can I add this code
    If Not Intersect(Target, Range("D:D")) Is Nothing Then
    Range("C" & Target.Row + 1).Activate
    ElseIf Not Intersect(Target, Range("A:B")) Is Nothing Then
    Range("A2").Activate
    End If


    "So if you make any change in columns A or B, you want the active cell to be A2 afterward? Then adjust the If statement like so:"
    same in the picture above. But now this code different.

    When I type the name in A1 and B1 the press enter automatic return in A2 to continue add the name.

+ 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. [SOLVED] Any limit on columns for OFFSET
    By johnnymac in forum Excel General
    Replies: 6
    Last Post: 10-21-2017, 03:52 PM
  2. [SOLVED] VBA using IF to offset multiple columns
    By Muktar888 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-02-2017, 02:14 PM
  3. Skip hidden columns when using offset
    By TechKnowledge in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-03-2016, 06:33 AM
  4. [SOLVED] Using VLookup and offset to fill columns
    By Gr8tDaze in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-01-2013, 01:56 PM
  5. Offset columns in row formulae
    By nickmangan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-09-2012, 03:55 AM
  6. Sorting columns using offset
    By sinkingfun in forum Excel General
    Replies: 0
    Last Post: 10-13-2011, 06:49 PM
  7. OFFSET function :Columns to rows
    By naturallight in forum Excel General
    Replies: 1
    Last Post: 11-25-2009, 03:47 PM

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