+ Reply to Thread
Results 1 to 6 of 6

Number of rows with data from closed workbook

  1. #1
    Registered User
    Join Date
    09-20-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    51

    Number of rows with data from closed workbook

    Hi, I learn that i could use the following code to get the number of the last row with values in it.
    Please Login or Register  to view this content.
    I would like to check if there is anyway of finding the number of the last row with value in a closed workbook.

    Thanks in advance for any advise and inputs.

  2. #2
    Registered User
    Join Date
    09-20-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    51

    Re: Number of rows with data from closed workbook

    Any advise please

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Number of rows with data from closed workbook

    You can do what you want with a regular formula too....
    =COUNTA('\\fullpath\[filename.xlsm]sheetname'!$A:$A)

    either type inthe fullpath, filename etc, or open the file and point to the range. you can then close the other WB
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    09-20-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    51

    Re: Number of rows with data from closed workbook

    Apologies that I didn't make it clear earlier. I'm working with VBA as I need the number of rows that has details to do a while loop to retrieve data from the closed workbook for processing. Is there any way of doing so in VBA instead of formula in the sheet itself?

  5. #5
    Registered User
    Join Date
    09-20-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    51

    Re: Number of rows with data from closed workbook

    Any help on this?

  6. #6
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Number of rows with data from closed workbook

    How do you retrieve data from the closed workbook?
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

+ 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. Copy Data from Closed workbook (bbb.xls) to Open workbook (aaa.xls) (Part 2)
    By alexnkc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2013, 02:06 AM
  2. [SOLVED] Trouble copying data from closed workbook into active workbook, referencing help
    By lepperga in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-20-2013, 01:48 PM
  3. [SOLVED] Copying data from a closed workbook into an open workbook ignoring excel filter?
    By reach78 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-17-2013, 12:31 AM
  4. [SOLVED] Copying specific rows from an open workbook into the next row of a closed workbook.
    By Deimola in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-05-2012, 12:59 PM
  5. Replies: 0
    Last Post: 05-30-2012, 08:27 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