+ Reply to Thread
Results 1 to 3 of 3

Keyboard entering without Inputbox in marco

  1. #1
    Registered User
    Join Date
    07-29-2004
    Posts
    1

    Keyboard entering without Inputbox in marco

    I want to run a macro that moves the cursor from cell to cell, stopping in each for the entering of data/text from keyboard. However I do NOT want to have an "Inputbox" pop up using ActiveCell = InputBox("Enter Data")

    What can be put into the macro to do this?

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    In a Workbook SheetChange event use code similar to this:

    Application.EnableEvents = True
    ActiveCell.Offset(-1, 1).Select
    If ActiveCell.Column = 7 Then
    ActiveCell.Offset(1, -4).Select
    End If
    If ActiveCell.Row = 23 Then
    ActiveCell.Offset(-16, 0).Select
    End If


    Each time data is entered you control the movement of the cell pointer by using the ActiveCell.Offset(r,c).Select to the desired position relative to the current Active.Cell (note: if no data is entered, cell pointer responds as set in Tools>Options>Edit | Move Selection After Enter...

    Of course, adjust the sample to meet your needs.

    HTH
    Bruce
    The older I get, the better I used to be.
    USA

  3. #3
    Registered User
    Join Date
    02-02-2005
    Posts
    35

    Lock the cells

    I assume you will be expecting the data inputer to hit enter to move on.

    If you protect the sheet with only the data entry cells unlocked there is an option in the worksheet properties that restricts selection to unlocked cells only.
    This needs to be set in code when the workbook is opened (it does not save)

    the order seems to follow the move after enter setting in Tools\options

    hope this offers something to think about

    RES

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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