+ Reply to Thread
Results 1 to 4 of 4

If Condition is True, Save Data in Array, and Copy Array Data to other Worksheet

  1. #1
    Registered User
    Join Date
    05-22-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    6

    Talking If Condition is True, Save Data in Array, and Copy Array Data to other Worksheet

    Hello-

    I am new to writing Excel VBA. My goal is to start with a specific worksheet called "Hoist1", evaluate Column I called "Safety Code" beginning on row 7, and compile records with 2s and 3s (exclude the 1s). I need to save the values (all text data type) found in Columns B, A, and J in this order, to an array.

    After evaluating all rows, I need to proceed to the next worksheet and do the same. There are a total of 8 consecutive worksheets.

    Lastly, I need to copy the data saved in the array to the Summary worksheet into its columns A, B, and C beginning on row 7. Initially, there are two blank rows. Therefore, after the two rows have been filled, I need the VBA procedure to insert a new row after the second row.

    By the way, there is a column called "Action Code" in Column J for which I need to copy data from the same eight worksheets to the Summary worksheet beginning 4 rows after the last Safety Code.

    Please let me know if you have any questions or need any clarifications.

    Thank you for your patience as I am a "newbie!"

    Skelly
    Please Login or Register  to view this content.
    Last edited by Leith Ross; 08-30-2013 at 02:31 PM. Reason: Added Code tags

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: If Condition is True, Save Data in Array, and Copy Array Data to other Worksheet

    Hello skelly8117,

    Welcome to the Forum!

    Please post your workbook. It would help to see your layout and any formulas or code you have written. If your workbook contains sensitive information please redact it before posting.

    How To Post Your Workbook
    1. At the bottom right of the Reply window, Click the button Go Advanced
    2. At the top of the Your Message Window, in the first row of icons, Click the Paperclip icon.
    3. Click the Add Files button at the top right in the dialog box. This displays the File Manager dialog.
    4. Click the Select Files button at the bottom middle of the dialog.
    5. In the new window Find the file you want to upload, select it, and Click Open.
    6. You will now be back in the File Manager dialog. Click the bottom Middle button Upload File.
    7. Wait until the file has completely uploaded before you exit the File Manager dialog.

    File Manger Picture
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    05-22-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: If Condition is True, Save Data in Array, and Copy Array Data to other Worksheet

    Hello!

    Here is the workbook.

    Skelly8112
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-22-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: If Condition is True, Save Data in Array, and Copy Array Data to other Worksheet

    Hello, I now have the workbook attached. If anyone could point this newbie in the right direction, I would be most grateful.

    skelly

+ 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] Quick Array question - Copy array to another array then resize?
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-02-2013, 01:17 AM
  2. Using an Array to Copy Data to a Worksheet
    By Cofad in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-04-2013, 09:19 PM
  3. Copy worksheet and data from array
    By swaboe in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-24-2013, 06:45 AM
  4. Using array to transfer data of different data types to worksheet
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-13-2011, 03:12 PM
  5. Copy data from one cell to another if a blank condition is true
    By gadjit in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-08-2009, 08:17 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