+ Reply to Thread
Results 1 to 9 of 9

VBA Macro - Copy information from one sheet to another skipping blanks

  1. #1
    Registered User
    Join Date
    02-28-2017
    Location
    NEW YORK
    MS-Off Ver
    2013
    Posts
    13

    VBA Macro - Copy information from one sheet to another skipping blanks

    Good afternoon all!

    I am trying to automate a process I currently do and wanted to know if someone can help. Essentially what I want the macro to do is copy data from a table on each sheet onto the "payments posted" tab. I also want it to skip any blank cells and total the whole amount column on the first sheet. Here is the the information from when I recorded macros for 10 of the 50 tabs to give an example.


    Please Login or Register  to view this content.
    I've also attached the document I'll be using. Any help will be much appreciated as i am super stuck.
    Attached Files Attached Files
    Last edited by ksky88; 10-12-2017 at 08:00 AM.

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: VBA Macro - Copy information from one sheet to another skipping blanks

    Hello ksky88,

    Moderation removed.
    Last edited by Winon; 10-11-2017 at 02:16 PM. Reason: Code tags added
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Registered User
    Join Date
    02-28-2017
    Location
    NEW YORK
    MS-Off Ver
    2013
    Posts
    13

    Re: VBA Macro - Copy information from one sheet to another skipping blanks

    sorry about that just updated it now

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: VBA Macro - Copy information from one sheet to another skipping blanks

    Hello ksky88,

    Try applying Filters to the Range/s you want to Copy, and then Copy SpecialCells(xlCellTypeVisible) to where you want it to go.

    Regards.

  5. #5
    Valued Forum Contributor
    Join Date
    05-11-2013
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    586

    Re: VBA Macro - Copy information from one sheet to another skipping blanks

    Hi ksky88,

    Can you post/attach an xlsx/xlsm version of your file?

    Regards

    peterrc

  6. #6
    Registered User
    Join Date
    02-28-2017
    Location
    NEW YORK
    MS-Off Ver
    2013
    Posts
    13

    Re: VBA Macro - Copy information from one sheet to another skipping blanks

    sure just added it to the post
    thanks for helping out by the way!
    Last edited by ksky88; 10-11-2017 at 03:01 PM.

  7. #7
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,565

    Re: VBA Macro - Copy information from one sheet to another skipping blanks

    You show values in some cells but no Invoice No's to the left of these values. By design, laziness or age related (forgot)?

  8. #8
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,565

    Re: VBA Macro - Copy information from one sheet to another skipping blanks

    See if this is anywhere near what you have in mind as far as copy/paste is concerned.
    I assume I don't need to tell you to try it on a copy of your original first.
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    02-28-2017
    Location
    NEW YORK
    MS-Off Ver
    2013
    Posts
    13

    Re: VBA Macro - Copy information from one sheet to another skipping blanks

    That worked flawlessly! Thanks a lot!

+ 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. Macro Button to copy last row of data, transposed, skipping a row to another sheet
    By travreed7 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-11-2015, 01:59 AM
  2. Replies: 7
    Last Post: 05-28-2014, 01:20 AM
  3. Replies: 1
    Last Post: 05-21-2014, 04:30 PM
  4. [SOLVED] Copy cells from one worksheet to another while skipping blanks
    By gawk1980 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 02-23-2013, 05:02 PM
  5. [SOLVED] Copy data from one sheet to another while skipping blanks and certain rows
    By gawk1980 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-15-2013, 07:34 AM
  6. [SOLVED] Copy data from one sheet to another while skipping blanks and certain rows
    By gawk1980 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-14-2013, 01:21 PM
  7. Copy Paste Macro with Values & Skipping Blanks
    By Blockey in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-30-2012, 08:24 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