+ Reply to Thread
Results 1 to 2 of 2

how to add rows to code which retrieves data from closed workbooks?

  1. #1
    Registered User
    Join Date
    01-05-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    1

    how to add rows to code which retrieves data from closed workbooks?

    For the past few days I've been trying to figure a way to customize code which retrieves data from closed workbooks. The example code applies to 2 rows and I need it to apply to many more (the 2 rows are working correctly). This is the first time using Visual Basic and as much I've researched I can't understand how to fix my problem.The code is as follows and was from the getvalue file located athttp://www.interactiveds.com.au/software.html. The code currently retrieves 13 columns and 2 rows of data, I need to be able to change the rows to any number I need. It'd also be helpful to know how to changes the column number, though I am currently ok with the 13. Can anyone please assist? My current code is as follows:

    Please Login or Register  to view this content.
    Last edited by Stasi; 01-05-2010 at 04:44 PM. Reason: To add code tags

  2. #2
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    Re: how to add rows to code which retrieves data from closed workbooks

    Hi
    change filename and sheetname in the code and run the macro. It pulls 1 3 columns and 25 rows. you can change it too.
    Please Login or Register  to view this content.

+ 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