LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default find data another workbook

Hi

Thanks in advance Don't know to reference another workbook with folder and
file name.

Looking at the following code I am unsure how to get information from other
spreadsheets.

In the loop the folder will look at various stores. The following shows
perth but does not look at it. I have 10 other stores to look at.

How do I reference another workwook.


Dim strLookSheet As String
Dim varAnswer As Variant
Dim strWorkbookFolder As String
Dim strWorkbookFile As String

strWorkbookSheet = "Meats"
strWorkbookFolder = "C:\data\perthstore\"
strWorkbookFile = "Today_Sales"

varAnswer = Worksheets(strWorkbookSheet).Range("D6").Value





thanks for all your help.

Trev B
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find cell in Excel2000 workbook with link from another workbook? Mark4mmx Excel Discussion (Misc queries) 1 October 8th 08 12:55 PM
loop through a column on a workbook copying data on each row to another workbook, then copy data back to the original workbook burl_rfc Excel Programming 1 April 1st 06 08:48 PM
HOW DO I USE MACRO TO FIND REPEATING DATA FROM ANOTHER WORKBOOK John Knapczyk Excel Programming 0 February 27th 05 09:03 AM
HOW DO I USE MACRO TO FIND REPEATING DATA FROM ANOTHER WORKBOOK John Knapczyk Excel Programming 0 February 27th 05 08:59 AM
EXCEL: Find data in worksheet and create a new sheet in same workbook Peacce Dog Excel Programming 3 November 18th 04 08:05 PM


All times are GMT +1. The time now is 02:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"