+ Reply to Thread
Results 1 to 8 of 8

Resize range after import

  1. #1
    Forum Contributor
    Join Date
    07-21-2010
    Location
    Alta, Norway
    MS-Off Ver
    Excel 2003
    Posts
    119

    Resize range after import

    Hi,

    I am importing several new rows from text files to a excel sheet. This runs ok and places the rows under the last row in the sheet with values.

    The problem:
    I am using a list for the existing rows, but the imported rows stays outside the list.
    Is there a macro that will resize the list automaticly so the new rows are included?

    Hope someone will share their knowledge with me

    Gnoke
    Last edited by gnoke; 07-30-2010 at 07:36 AM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Resize range after import

    hi gnoke
    maybe
    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Contributor
    Join Date
    07-21-2010
    Location
    Alta, Norway
    MS-Off Ver
    Excel 2003
    Posts
    119

    Re: Resize range after import

    Hi and thanks for your replay

    This formula merely resizes the columns to show the entire text in each cell.
    Maybe I was unclear, I need a resize of the list to include newly added rows..

    Gnoke

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Resize range after import

    the syntax is .List( row, column )
    do you have an example workbook?

  5. #5
    Forum Contributor
    Join Date
    07-21-2010
    Location
    Alta, Norway
    MS-Off Ver
    Excel 2003
    Posts
    119

    Re: Resize range after import

    Thanks for your time,

    I have attatched a sample file. As you can see the buttom three rows are imported, but outside the list.
    Of course I can just drag the list downwards, but since imports are done often, It would be much easier to have a macro do it for me
    Attached Files Attached Files

  6. #6
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Resize range after import

    Hi gnoke

    maybe something like
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    07-21-2010
    Location
    Alta, Norway
    MS-Off Ver
    Excel 2003
    Posts
    119

    Re: Resize range after import

    Superb!

    Thanks a lot mate.)

  8. #8
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Resize range after import

    no worries

    Thanks for taking the time to mark the post Solved .

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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