+ Reply to Thread
Results 1 to 5 of 5

Copy Destination

Hybrid View

  1. #1
    Registered User
    Join Date
    05-10-2011
    Location
    india
    MS-Off Ver
    MS365
    Posts
    28

    Copy Destination

    Dear Experts,

    My macro is able to copy the data as per the VBA code. The code for the copy destination is not working. Need your support on this.

    Expected Action: From sheet "List" copy the each row and paste it in the sheet 2 paste special & Transpose until last row in sheet"List".

    Thanks in Advance
    Attached Files Attached Files

  2. #2
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Copy Destination

    Try this,

    Range(Selection, Selection.End(xlToRight)).Copy
       Sheets("Sheet2").Range("a22").PasteSpecial Paste:=xlValues, Transpose:=True
    But, you should not be using selection in your code
    Last edited by JapanDave; 07-21-2013 at 06:30 PM. Reason: I watched Tinkerbell.
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy Destination

    Dave,
    Will that be my homework or course work?

  4. #4
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Copy Destination

    Quote Originally Posted by AB33 View Post
    Dave,
    Will that be my homework or course work?
    Yep, But at least I will will reply back to you..

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy Destination

    Dave,
    It is sunny out here. I am up for water sports and Beers. I would not able to do my work until the sun disappears.
    The SUN is too precious and becoming in an dangerous species in this part of the world. So, the cliché is "Enjoy while it lasts"

+ 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. [SOLVED] Destination copy and paste (values only) for copy loop
    By mr_mango81 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-01-2013, 08:59 PM
  2. Copy Destination
    By JapanDave in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-11-2011, 06:27 AM
  3. Copy Value From Destination
    By direct2me in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-08-2011, 12:02 PM
  4. Using destination filepaths listed in cell contents opposing to coding destination
    By kuraitori in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2009, 01:23 PM
  5. VBA .copy destination
    By jerredjohnson in forum Excel General
    Replies: 2
    Last Post: 07-18-2006, 06:25 PM

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