+ Reply to Thread
Results 1 to 6 of 6

Excel VBA copying and pasting into rows instead of columns

  1. #1
    Registered User
    Join Date
    07-08-2017
    Location
    Minnesota
    MS-Off Ver
    Microsoft Office 2016
    Posts
    74

    Excel VBA copying and pasting into rows instead of columns

    Hello, the following macro goes into 4 workbooks and pastes the data into the current macro workbook cells A1, A2, A3, A4. I know how to manipulate whether the code starts at A2, A3, etc, by changing the "Cells (i+1,1)" to "Cells (i+2,1)", but my question is how do I manipulate the code to paste the data in A1, B1, C1, D1? Thanks!

    Please Login or Register  to view this content.

  2. #2
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Excel VBA copying and pasting into rows instead of columns

    Increment the column instead of row like this >> Cells(1, i)
    So, row 1 is fixed, and "i" the column increments with each loop.
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,176

    Re: Excel VBA copying and pasting into rows instead of columns

    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  4. #4
    Registered User
    Join Date
    07-08-2017
    Location
    Minnesota
    MS-Off Ver
    Microsoft Office 2016
    Posts
    74

    Re: Excel VBA copying and pasting into rows instead of columns

    Thank you both - I appreciate it!

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,517

    Re: Excel VBA copying and pasting into rows instead of columns

    Please Login or Register  to view this content.

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,176

    Re: Excel VBA copying and pasting into rows instead of columns

    Glad we could assist. Tx for rep +

+ 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. Copying and pasting multiple columns
    By Pianoman23 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-21-2016, 03:48 AM
  2. Excel Document Incredibly sluggish when Copying and Pasting rows
    By Smeesters in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-06-2015, 12:25 PM
  3. [SOLVED] Copying and Pasting Formated columns and Rows
    By Frankie21 in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 07-10-2014, 05:53 PM
  4. Replies: 3
    Last Post: 06-25-2013, 10:27 AM
  5. VBA: Copying and pasting a given column every 3 columns
    By vozas in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-19-2011, 10:34 AM
  6. Copying Columns and Pasting in New Sheet
    By Topdrop18 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-01-2010, 11:34 AM
  7. Copying/Pasting Rows/Columns based on content
    By Lmsloman in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-19-2006, 07:28 PM

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