+ Reply to Thread
Results 1 to 3 of 3

macro to get cell values from sheet without opening it

Hybrid View

  1. #1
    Registered User
    Join Date
    04-03-2012
    Location
    Cayman
    MS-Off Ver
    Excel 2007
    Posts
    11

    macro to get cell values from sheet without opening it

    I need a macro that is linked to a command button that a user clicks, selects a file and then gets cell values into the worksheet from specific cells in the file selected. Can anyone provide example code for this? For example I would like to get the value from cell A1 in the selected sheet and place the value in cell b2 of the sheet I am working in.

    Thanks

    Alan

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: macro to get cell values from sheet without opening it

    You can get cell values from a closed workbook using formulas, it is more difficult using VBA

  3. #3
    Registered User
    Join Date
    04-03-2012
    Location
    Cayman
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: macro to get cell values from sheet without opening it

    The problem is I am trying to get data from various files with different filenames. I cant see how I can do this with formulas. I need a macro to activate the file and then place values in the workbook I have open.

+ 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. [SOLVED] Macro to run upon opening only auto runs in one sheet
    By KatyPRB in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-11-2015, 10:19 AM
  2. How to run a macro, if the value in a cell matches with a set of values in other sheet?
    By laxminarayana in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-08-2014, 12:43 PM
  3. Replies: 0
    Last Post: 11-22-2012, 08:42 AM
  4. [SOLVED] Macro to refresh a sheet when opening
    By amotto11 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-06-2012, 03:54 PM
  5. macro to get the look up values from different workbooks without opening them.
    By 376795 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-20-2011, 10:54 AM
  6. macro to save a values of a cell in a new sheet as a new row
    By dpt in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-08-2005, 02:41 AM
  7. Help with macro opening 2nd sheet
    By Steve Lowe in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-02-2005, 12:06 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