+ Reply to Thread
Results 1 to 5 of 5

Conditional Copy/Paste

  1. #1
    Registered User
    Join Date
    01-28-2015
    Location
    Dublin, Ireland
    MS-Off Ver
    2010
    Posts
    2

    Exclamation Conditional Copy/Paste

    Hello, would someone care to give me some guidance on this?
    I need a macro to reorganise some data.
    I work only with one sheet ('Sheet1')
    Column AE (Phone_Type_1) is a list of either 'Phone', 'Email', 'Landline'or'Mobile'.
    Column AF (Phone_number_1) contains the actual email addresses and phone numbers.

    At the moment I have two columns, one with phone type and another with phone number, I need 3 columns with phone types (mobile, landline, email - as headers) with phone values in rows.

    I've crated part of the code to add new columns with headers phone, mobile, landline etc and now I need to do the conditional copy & paste.

    e.g. if phone type (column AE) = 'email' copy and paste to column AC
    if phone type (column AE) = 'Mobile' copy and paste to column AA

    I've written simple macros before, but this one (even with the help of examples I've found) is a little beyond me.

    Any help would be appreciated.

    Thanks.

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Conditional Copy/Paste

    You could accomplish this with conditional formatting, is this an option for you?
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Conditional Copy/Paste

    Sorry about that, I goofed, not conditional formatting, I mean formulas. Would formulas work for you?

  4. #4
    Registered User
    Join Date
    01-28-2015
    Location
    Dublin, Ireland
    MS-Off Ver
    2010
    Posts
    2

    Re: Conditional Copy/Paste

    Not sure - maybe I'm just not good enough to build one that would do what I need Any expert suggestion? much appreciated

  5. #5
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Conditional Copy/Paste

    Below is a sample for you to try out and see if it works for you. If it does, then copy the formulas in cell AA and paste to cells or columns you need in AA. Do the same with columns AB and AC.

    Sample CopyPaste Fomula.xlsm

+ 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. Conditional Copy and Paste
    By mpearson in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-18-2013, 10:33 AM
  2. Conditional Copy paste
    By rlsublime in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-13-2012, 02:02 PM
  3. conditional copy/paste
    By Newbie904 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-02-2009, 04:04 AM
  4. Conditional copy paste
    By sharpstyx in forum Excel General
    Replies: 1
    Last Post: 07-16-2009, 03:19 AM
  5. [SOLVED] Conditional Copy and paste
    By Pedro F. in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-24-2006, 11:55 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