+ Reply to Thread
Results 1 to 2 of 2

Auto fill box and offset activecell

  1. #1
    Registered User
    Join Date
    11-19-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    8

    Auto fill box and offset activecell

    Hi Guys ,

    I use below code for auto filling from a database and it works great. Is there a way that when I press enter key the active cell move by offset(0,1)
    (for example from a1 to b1) then when i press enter key again(when in b1) it will move activecell by(1,-1) (from b1 to a2), then after enter key again to b2 and so on..

    Many thanks for your help in advance!

    Please Login or Register  to view this content.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Auto fill box and offset activecell

    It says this in the help file:

    A KeyPress event does not occur under the following conditions:


    Pressing TAB.
    Pressing ENTER.
    Pressing an arrow key.
    When a keystroke causes the focus to move from one control to another.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

+ 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] VBA ActiveCell Offset
    By hobbiton73 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2013, 05:50 AM
  2. activecell offset without vba?
    By AverageCanadian in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-11-2013, 03:59 PM
  3. Sheets.ActiveCell.Offset
    By Forty in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-29-2011, 03:41 AM
  4. Activecell offset with Variable
    By sgreni in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-04-2011, 05:42 PM
  5. activecell.offset
    By steelsoul in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2010, 09:23 AM
  6. ActiveCell.Offset via Dim
    By iturnrocks in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2007, 11:13 PM
  7. ActiveCell Offset
    By rnrss in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-07-2005, 05:12 AM
  8. [SOLVED] Sum Activecell Offset Problem
    By George Andrews in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-21-2005, 08:06 PM

Tags for this Thread

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