VBA Paste
Power Query Course in Spanish
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: VBA Paste

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    Hi,
    I'm writing a macro that pastes a row of data from one sheet to another. FYI, the original row of data is in a list.
    What happens is that when I paste the row onto another worksheet, Excel merges the row below with my selected row. I don't want it to do that. If I do it manually, it works fine... If I do it with a macro, it merges then pastes it in.
    Thanks in advance.

  2. #2
    MrExcel MVP Al Chara's Avatar
    Join Date
    Feb 2002
    Location
    Newark, Delaware
    Posts
    1,701
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    Try the following code:

    Worksheets(2).Rows("1:1").Value = Worksheets(1).Rows("1:1").Value

    It sets Row 1 of Worksheet 2 equal to Row 1 of Worksheet 1. If you give me more details of exactly what you want to do, then I customize the macro for you.
    Best regards,
    Allan Chara
    http://www.mrspreadsheets.com

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com