+ Reply to Thread
Results 1 to 3 of 3

VBA Code to shift cells down to copy new data from the range

  1. #1
    Forum Contributor
    Join Date
    06-20-2012
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    359

    VBA Code to shift cells down to copy new data from the range

    I have querytable data in '"A2:P6".

    when ever i get new data i want to copy the data from A2:P6 to A8:P12 shifting the old data in A8:P12 leaving one blank row. The below code is copying the data but not shifting the cells when i run the macro second time to copy new data


    Please Login or Register  to view this content.
    Thank you
    Last edited by zaska; 01-24-2023 at 11:30 PM.

  2. #2
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    365 32bit Win
    Posts
    1,811

    Re: VBA Code to shift cells down to copy new data from the range

    Does this work for you?

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    06-20-2012
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    359

    Re: VBA Code to shift cells down to copy new data from the range

    Thank you, this code does the job. However, I have reference formulas to Rawdatasheet and when the cells are shifted down the reference values are also getting shifted down
    How to overcome this problem? I want to shift cells down because the old data shifts down and new data stays on top.

    Please Login or Register  to view this content.
    Thank you

+ 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 - Shift data in range (row) left towards first cell WITHOUT deleting cells.
    By JJGF in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-14-2018, 12:54 AM
  2. VBA Code to only copy cells with data within a range
    By lebroj in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-23-2017, 04:01 PM
  3. [SOLVED] Marco to Insert & shift cells down at active cell and copy cell range
    By jyarbrough in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-19-2015, 06:18 AM
  4. [SOLVED] VBA - Copy/Pasted range to shift up if there are empty cells in b/w
    By fullspeed in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-30-2014, 06:06 PM
  5. go through a range and delete, shift cells left if contain no data.
    By 13lack13lade in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-25-2014, 09:50 PM
  6. [SOLVED] VBA code for not copy data in Sheet2 if all cells in range in Sheet1 are not filled
    By ginodauri in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-10-2013, 12:33 PM
  7. Replies: 0
    Last Post: 03-26-2013, 02:58 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