+ Reply to Thread
Results 1 to 4 of 4

Copying dynamically from one sheet to another without blanks

  1. #1
    Registered User
    Join Date
    06-14-2006
    Posts
    13

    Copying dynamically from one sheet to another without blanks

    I hope this one hasn't been done to death, well I know it has. But mine is a bit different.

    I have a master sheet that contains a macro. I would like it to jump to a selected sheet, select the range A13 to the last row of C column that contains data. This would then be copied and pasted into the master sheet starting at C3, without blanks.

    I came very close just now but got stuck in an endless loop and lost my work I remember that it would paste fine but the skipblanks property of pastespecial did nothing.

    Can anyone help with this?

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Why do you need SkipoBlanks, if you set the range to copy within the code it won't pick up blanks, how do you intend selecting a sheet?

    Something like this:
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    06-14-2006
    Posts
    13
    Thanks for the reply. I need to skip the blank cells as there are about 50-100 between each meaningful entry and the summary page (where the entries are to be dumped) needs to be readable. Sheet selection, I would love it to cycle through the data entry pages (which are all in a block of sheets, one after the other) and repeat the copy paste operation. It should be easy because the data starts in exactly the same place on each sheet.

    Will try the above and post back!

  4. #4
    Registered User
    Join Date
    06-14-2006
    Posts
    13
    OK, the above code copies the correct range of data but pasting it onto the new sheet leaves all the spaces, formatting and some buttons I have there. So it's still including blanks... Never mind, just recorded a simple macro to use goto special blanks and delete with **** cells up. Code isn't pretty but it works I guess!
    Last edited by fynn; 06-06-2008 at 01:52 AM.

+ 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 to Search, Copy/Paste onto New Sheet
    By JADownie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2008, 04:57 PM
  2. copying cell values to specific area in sheet
    By Reinder in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-12-2007, 09:55 AM
  3. copying formula into another sheet as number
    By mutu in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-20-2007, 01:57 AM
  4. copying entire row from one sheet to another
    By EddyAddelan in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-09-2006, 11:12 AM
  5. Copying the first row of a sheet to a new sheet?
    By DigitalWatch in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-17-2006, 10:35 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