+ Reply to Thread
Results 1 to 3 of 3

copy data based on predefined condition and paste them to an "array"

  1. #1
    Registered User
    Join Date
    06-01-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    copy data based on predefined condition and paste them to an "array"

    I have 6 columns of data
    one column is "condition"
    move cursor along the "condition" column until pointing to a predefined value
    copy n rows of data before the value and m rows after to an "array" (a defined range)

    How may I accomplish the automation? Or which part of the VBA macro writing I need to read in order to know how to compose the needed scripts?

    Thank you.

    -Shane
    Last edited by alansidman; 10-27-2015 at 12:41 PM. Reason: removed personal information

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: copy data based on predefined condition and paste them to an "array"

    No idea how your defining the condition column, m, n, or the value you want to find, so I just hard coded them up front to be able to show you the syntax you need after they are defined.

    Please Login or Register  to view this content.
    I'm interested in starting a career working with VBA, if anyone knows of any opportunities!

  3. #3
    Registered User
    Join Date
    06-01-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: copy data based on predefined condition and paste them to an "array"

    Thank you very much for your help, walruseggman. I will try your coding.

    -Shane

+ 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. Short "Basic" Macro to copy and paste formulas "N" times.
    By gradyhawks in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-09-2014, 02:34 PM
  2. Replies: 6
    Last Post: 12-08-2014, 01:28 AM
  3. [SOLVED] Copy multiple rows that contain a certain "name" in column "A" then paste it into new work
    By rschlot2 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-18-2013, 02:25 PM
  4. [SOLVED] Copy row based on value in col A + paste in new sheet, more than one value in "A" desired
    By LiLi1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-12-2013, 09:18 PM
  5. Macro to Copy And Paste selected cells based on "yes"
    By RemoteMed in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-14-2013, 11:26 AM
  6. Macro to copy and paste rows based on "text" found in Column A
    By balston2 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-09-2013, 12:35 PM
  7. Replies: 3
    Last Post: 08-28-2012, 10:49 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