+ Reply to Thread
Results 1 to 3 of 3

Macro to update balance sheet. Trying to loop until row is blank & copy/paste.

  1. #1
    Registered User
    Join Date
    08-04-2013
    Location
    Tucson, AZ
    MS-Off Ver
    Excel 2007
    Posts
    13

    Macro to update balance sheet. Trying to loop until row is blank & copy/paste.

    Hello,

    Firstly, thank you for any help/suggestions, it's greatly appreciated!

    I created this balance sheet for my boss as a "fun" way for employees to track their stats each month. I'm embarrassed by the code because I know it's all over the place but it works.

    Basically they input their stats and then manually type in their results at the end of the month and the macro clears out the page to reset for the next month (macro ran by clicking on image top right).

    What I'm trying to do is automate that process to copy/paste value from F22 and K22 to the next empty line in the ranges F25:F35 and K25:K35 and to select the yes/no drop down I25:I35 if there was a hoc as well.

    As you can see with my lengthy if statements I usually steer clear of loops but I think this is the best route. Any suggestions on what type of loop to use?

    Thanks!




    Example.xlsm

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,870

    Re: Macro to update balance sheet. Trying to loop until row is blank & copy/paste.

    Try this:

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    04-14-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    198

    Re: Macro to update balance sheet. Trying to loop until row is blank & copy/paste.

    Since you like using and know how to use if statements and your code is all crazy... why dont you just add 12 other if statements stating... if Date which would be todays date is between 1st of Month and 30th of Month then copy data to whatever month it is... I would help at just writing it for you but your code is way confusing already and I would have to redo everything...

+ 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. Replies: 3
    Last Post: 11-06-2014, 01:23 AM
  2. VBA: Copy non-blank and paste to separate sheet ONLY blank cells (running list)
    By brolsen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2014, 03:34 PM
  3. [SOLVED] Copy,Paste or Update sheet
    By amador in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-15-2014, 06:34 AM
  4. [SOLVED] Copy/Paste Loop Needs to Recognize Blank Cells
    By freybe06 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2013, 11:50 AM
  5. Replies: 7
    Last Post: 12-03-2012, 03:10 AM

Tags for this Thread

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