+ Reply to Thread
Results 1 to 2 of 2

Move data down a row after being entered

Hybrid View

  1. #1
    Registered User
    Join Date
    07-23-2022
    Location
    Australia
    MS-Off Ver
    2007
    Posts
    1

    Move data down a row after being entered

    I have 7 columns. a;date, b;description, c;debit, d;A, e;M, f;credit, g;BLANK, h;balance.

    I would like to setup an entry row (row 4) and have cells in that row from column a-f coloured yellow permanently.
    Every entry has a date and description but column c,d,e,f will vary depending on whether it is a credit or a debit. So some cells will be left blank.

    How can I keep the row 4 (a-f) coloured as well shift all data down a row once I have completed my entry?
    I would like to shift data down once the enter button is hit and have the active cell return to 4A ready for the next data entry.

    Is this possible?
    Help with how to please.

  2. #2
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,098

    Re: Move data down a row after being entered

    Hello Rodels,

    I'm not sure if I fully understand your request, but you could try the following code assigned to a button:

    Option Explicit
    Sub RodelsTest()
    
            Dim lr As Long: lr = Sheet1.Range("A" & Rows.Count).End(xlUp).Row + 1
            Dim sh As Worksheet: Set sh = Sheet1 '---->Or whatever your sheet name is.
            
    Application.ScreenUpdating = False
        
            sh.Range("A4:F4").Interior.ColorIndex = 6
            sh.Rows(4).Insert
            sh.Range("A4:F4").Interior.ColorIndex = 6
            sh.Range("A5:H" & lr).Interior.ColorIndex = xlNone
        
    Application.Goto sh.[A4]
    Application.ScreenUpdating = True
    
    End Sub
    I'm assuming that you have headings in row3.

    If it's not what you were looking for then please read the gold coloured banner at the top of this page which gives instructions on how to upload a sample workbook.

    I hope that this helps.

    Cheerio,
    vcoolio.

+ 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 Automatically move cells after data from a drop down list is entered or changed
    By Crawfy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-29-2020, 01:04 AM
  2. [SOLVED] Move cursor to the right automatically after data is entered/selected from the drop downs
    By sloshpuppy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-15-2017, 11:14 AM
  3. [SOLVED] move row of data to new tab when specific number entered in specific column
    By kenboy in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-06-2015, 04:15 PM
  4. Move entire row of data from Sheet 1 to sheet 2 when completed date is entered.
    By jt7721 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-18-2013, 11:50 AM
  5. [SOLVED] Move row to another worksheet when data entered in column M (and a bit more if possible)
    By lsmcal1984 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-26-2013, 09:46 AM
  6. formula to move to the start of a new row after data is entered
    By asc3762 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 01-22-2013, 12:49 AM
  7. Move row of data to another sheet once a date is entered in a specific column
    By stankanie in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-27-2012, 09:21 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