+ Reply to Thread
Results 1 to 9 of 9

Range with multiple rows and Columns.

  1. #1
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Range with multiple rows and Columns.

    Im using the following range to copy data from Column A (from rows 3 on the the last row). How can I include Columns B and C into this range also, but still using Column A to find the last row?

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Range with multiple rows and Columns.

    You could resize.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Canada Eh
    MS-Off Ver
    Excel 2010
    Posts
    199

    Re: Range with multiple rows and Columns.

    Maybe:
    Please Login or Register  to view this content.
    Click the * to give Rep to a post you like.

  4. #4
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Re: Range with multiple rows and Columns.

    Thanks Norie.
    How can I then tell it to occupy cells A3 to C3 down. I was using the following code when it was just one Column:
    Please Login or Register  to view this content.

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Range with multiple rows and Columns.

    Not sure what you mean, can you post the whole code?

  6. #6
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Re: Range with multiple rows and Columns.

    Im basically trying to copy data from one workbook (Dimmed wb) to another (Dimmed mybook). The sheet is called "Users" on both workbooks. Im trying to copy the data in Column A, B & C from rows 3 on from workbook wb to the exact same corresponding cells on workbook mybook.

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

    Re: Range with multiple rows and Columns.

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Re: Range with multiple rows and Columns.

    AB33 I believe that will just copy the data in those cells, I'm looking to then paste it into the workbook mybook, sheet 'Users' into the same Columns A, B and C in the next available row from 3 on.

  9. #9
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Range with multiple rows and Columns.

    This will paste into mybook starting at the next available row in column A.
    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Re: Range with multiple rows and Columns.

    That code gave me the following error:
    run time error '1004'
    Copy method of range class failed

    I also tried the following:
    Please Login or Register  to view this content.
    Which didn't produce any errors, but it didn't copy the data either.

+ 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. Replies: 9
    Last Post: 12-15-2013, 10:05 PM
  2. Best Way to Conditionally Format Range (Multiple Columns and Rows)?
    By freybe06 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-14-2013, 04:53 PM
  3. Conditional Formatting for cell range covering multiple rows and columns
    By edp428 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-09-2013, 02:02 PM
  4. Combining multiple rows from 2 columns into sorted columns depending on 1st columns value
    By Dexamphetamine in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-11-2013, 10:00 AM
  5. Replies: 1
    Last Post: 03-18-2009, 04:18 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