+ Reply to Thread
Results 1 to 3 of 3

Alternative copy & paste

Hybrid View

mali90 Alternative copy & paste 03-15-2011, 05:02 AM
royUK Re: Alternative copy &... 03-15-2011, 05:03 AM
mali90 Re: Alternative copy &... 03-15-2011, 06:57 AM
  1. #1
    Registered User
    Join Date
    12-08-2010
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    15

    Alternative copy & paste

    Hi everyone,

    I'm relatively new to vba so please bear with me!

    I'm trying to write some code in vba that will copy and paste certain lines from various worksheets within the workbook and paste them into 2 sheets, in the same workbook.

    I'm trying to attach the workbook or even screenshots but the network here is a bit slow so it is taking way too long.

    Basically:

    there are approximately 7-8 sheets from which i need data. to identify the lines that i need to copy across, it is simply whether or not all the columns (C-P) have values in them. IF they do have values in them, i need to copy them into another sheet in the same workbook.

    i'm assuming it's some sort of If statement but i cannot figure out how to code it.

    ANY help would be greatly appreciated.

    many thanks,

    mali

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Alternative copy & paste

    Maybe your attachment exceeds the forum size limit, try zipping it
    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
    12-08-2010
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Alternative copy & paste

    Quote Originally Posted by royUK View Post
    Maybe your attachment exceeds the forum size limit, try zipping it
    managed to do so this time, had to recreate the file without several parts of it so it would upload faster.

    if you look at sheets "CT17_2" and "CT17_1", there are some lines that are empty in columns G and I. what i want to do is write a macro that picks up when there is data in all the columns C-P, when there is data (so for example it shouldn't pick up G20, 21, 25, 27, 32), and then copy that data into sheet "CT17".

    is that clearer or am i still being a bit confusing?
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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