+ Reply to Thread
Results 1 to 3 of 3

Find last row in closed workbook using file path name

  1. #1
    Registered User
    Join Date
    06-04-2012
    Location
    Waterloo, iA
    MS-Off Ver
    Excel 2007
    Posts
    14

    Find last row in closed workbook using file path name

    I'm trying to define a variable as the last row in a closed file. I understand how to make the value of a cell equal to a value in a closed workbook, but I can't figure out why it's not similar when defining a variable as the last row of a sheet in a closed workbook. I'm trying to get all of the data in the closed worksheet into the open worksheet but the number of lines of data that the closed sheet can have varies. Here's what I have right now:

    Please Login or Register  to view this content.
    And this is the part that throws up an error:
    Please Login or Register  to view this content.
    I know there's a way to do it by opening the Closed Workbook, but there's got to be an easier way, right? Any help is much appreciated!
    Last edited by amazingg64; 08-27-2012 at 09:21 AM.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Find last row in closed workbook using file path name

    so you want to get into a locked room, measure it without opening the door
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    06-04-2012
    Location
    Waterloo, iA
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Find last row in closed workbook using file path name

    Nevermind. I figured it out. For anyone else's reference here's my modified code:

    Please Login or Register  to view this content.
    Last edited by amazingg64; 08-27-2012 at 09:35 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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