+ Reply to Thread
Results 1 to 3 of 3

Sheet1 - Variable/editable cell to specify which workbook to pull data from

  1. #1
    Registered User
    Join Date
    07-16-2015
    Location
    Brighton, England
    MS-Off Ver
    2010
    Posts
    71

    Sheet1 - Variable/editable cell to specify which workbook to pull data from

    Hi all, I am new to the forum and relatively new to VBA. I've had success so far with the great threads on this forum, so thank you.

    I believe my query is quite in depth and revolves around variable workbook lookups - and I don't know if it is possible. VBA/ Macro books are on the way, though a heads up from your experience will be greatly appreciated.

    OBJECTIVE

    - In Sheet1. I will be typing data in specific cells ("E4")- in this format: 07.20.15.xlsm <It is the name of a 1 sheet workbook - A report that I have created with VBA and run daily. I wish to extract data from it.


    - When I have completed this task for that date, I wish to delete the cell data, and retype with 07.21.15.xlsm (picking up a later dated workbook).

    - The destination for data extraction will be in my Master workbook sheet 3 (though there will be around 7 of these running at a time putting data onto incrementing sheets).


    I can see theoretically it could be possible as it picks this data up

    Sub Macro1()

    Dim RetrieveRange As Range
    Set RetrieveRange = Worksheets("Sheet1").Range("E4")
    MsgBox RetrieveRange.Value

    End Sub

    But unsure if it useable as variable to lookup workbooks


    Thanks for your help

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Sheet1 - Variable/editable cell to specify which workbook to pull data from

    Apart from appending the filepath name, I don't see any other reason why it could not work.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-16-2015
    Location
    Brighton, England
    MS-Off Ver
    2010
    Posts
    71

    Re: Sheet1 - Variable/editable cell to specify which workbook to pull data from

    Perfect, thank you quekbc!

+ 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. How to copy data from sheet1 of one workbook to sheet1 of another workbook
    By manidipa in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-22-2014, 07:11 PM
  2. [SOLVED] Pull specific string of data from variable cell value
    By Speshul in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-19-2014, 01:26 PM
  3. Pull Data From Sheet2 Into Grid On Sheet1
    By jo15765 in forum Excel General
    Replies: 2
    Last Post: 06-10-2014, 04:19 PM
  4. Macro to pull data from sheet1 to sheet2
    By rupss01 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-11-2011, 02:29 AM
  5. Replies: 15
    Last Post: 01-19-2011, 11:37 PM
  6. Pull data from sheet2 to sheet1 help
    By lilc420 in forum Excel General
    Replies: 3
    Last Post: 08-23-2010, 12:34 AM
  7. Pull data from workbook with variable name - based on date
    By MCMIV in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-28-2009, 03:20 AM

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