+ Reply to Thread
Results 1 to 6 of 6

Adjusting array arguments; editing current code

  1. #1
    Registered User
    Join Date
    12-20-2013
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2010
    Posts
    32

    Adjusting array arguments; editing current code

    Hello All, have a macro that one of the admins here helped me with, but now I'd like to make an adjustment:
    Please Login or Register  to view this content.
    I would like to now also pick up G74 (or H74 or I74, depending on which line item it is) and paste it into the master data sheet...

    I tried just adjusting the array, but that doesn't work for reasons I'm sure are obvious to the experienced people but not to me... Thanks for any help you can provide.

  2. #2
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Adjusting array arguments; editing current code

    If you could attach a sample workbook with data, that would be helpful.
    Acts 4:12
    Salvation is found in no one else, for there is no other name under heaven given to mankind by which we must be saved.

  3. #3
    Registered User
    Join Date
    12-20-2013
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Adjusting array arguments; editing current code

    filesformacro.zip
    I included the scorecard which is the source; the other is the destination

    Right now it functions great, I just need to add that extra field that I forgot to include initially;

  4. #4
    Registered User
    Join Date
    12-20-2013
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Adjusting array arguments; editing current code

    Also, sometimes when initially "finalizing" the data comes over weird, if I delete it and click the button again it works...

  5. #5
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Adjusting array arguments; editing current code

    Please Login or Register  to view this content.
    In the above portion of the code, the 2nd dimension of your array is 40, and there are 40 cells in SrcWks.Range. If you change G73 to G73:G74, you'll need to change your array height to 41 to make room for it.

  6. #6
    Registered User
    Join Date
    12-20-2013
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Adjusting array arguments; editing current code

    Ah perfect! Thank you so much!!!

+ 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] Formula Array not adjusting to range
    By LightHeart7 in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 11-22-2013, 01:56 PM
  2. Fill columns botom up fashion (editing current code)
    By opg in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-06-2009, 05:21 PM
  3. A general question about editing current list via UserForm
    By excelnut1954 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-25-2006, 03:30 PM
  4. [SOLVED] Excel macro, editing recorded cell.. not current
    By TroyT in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-12-2006, 09:30 AM
  5. Need help adjusting my code:
    By HouseofRahl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2005, 06:05 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