+ Reply to Thread
Results 1 to 3 of 3

macro to copy certain cells and past to another sheet.

  1. #1
    Registered User
    Join Date
    10-14-2011
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    8

    macro to copy certain cells and past to another sheet.

    Hi there

    I have to following macro (with help from another site) that i am using to copy certain info from one sheet to another:

    Please Login or Register  to view this content.
    it works, but due to the fact that i have a formula that makes a "" if antoher cell is empty, i get the following output

    Stephanie Products Loreal Shampoo 320
    Stephanie Products Loreal Conditioner 350
    Stephanie
    Stephanie
    Stephanie
    Stephanie
    Stephanie
    Stephanie
    Stephanie
    Stephanie
    Stephanie
    Stephanie
    Stephanie
    Stephanie

    How can i change this macro to only get the following output

    Stephanie Products Loreal Shampoo 320
    Stephanie Products Loreal Conditioner 350

    My previous trend can be found here http://www.mrexcel.com/forum/excel-q...worksheet.html

    Thanks

    Thanks

  2. #2
    Registered User
    Join Date
    10-14-2011
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: macro to copy certain cells and past to another sheet.

    oh dear, i lost the last part of my post. with this macro i get the following output

    Stephanie Products Loreal Shampoo 320
    Stephanie Products Loreal Conditioner 350
    Stephanie
    Stephanie
    Stephanie
    Stephanie
    Stephanie
    Stephanie
    Stephanie
    Stephanie
    Stephanie
    Stephanie
    Stephanie
    Stephanie

    how can i edit the above macro to only get the following output?

    Stephanie Products Loreal Shampoo 320
    Stephanie Products Loreal Conditioner 350

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: macro to copy certain cells and past to another sheet.

    You get this result as this is what you ask using the red part of your code.

    Please Login or Register  to view this content.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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. User Form to Copy/Past arow to different cells in different sheet
    By karimretina in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-11-2013, 06:32 PM
  2. Macro Problem with VBA need Help (copy past cells with macro and message box)
    By Nissort in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-25-2013, 12:17 PM
  3. Macro to copy 6 tabs to new sheet and past as values.
    By MelPilgrim in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-20-2012, 05:55 PM
  4. Replies: 4
    Last Post: 11-20-2012, 05:25 PM
  5. Replies: 2
    Last Post: 09-04-2012, 01:19 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