Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Open a workbook listed in a different worksheet (hope this is clearer!)

Hi,

I will try to explain my problem.

I have one workbook (A) with 200 columns, each column headed with th
address of different workbook. The rows underneath containin
numerical data.

The data in each column is in 200 other seperate workbooks. I woul
like to check that the numbers in workbook A matches that in the 20
files.

I tried to make a macro copy and paste the address from each colum
into the bar at the top, opening the corresponding workbook so I ca
take a number from cell D28 back to the original workbook to check i
is the same.

I have attached the macro below.

' Macro recorded 03/09/2004 by nick

Range("B2").Select
Application.CutCopyMode = False
Selection.Copy
ActiveWorkbook.FollowHyperlink Address:= _
"P:\\Data2\peer1-branch-1.xls" _
, NewWindow:=False, AddHistory:=True
ActiveWindow.ScrollRow = 25
ActiveWindow.SmallScroll Down:=-3
Range("D28").Select
Application.CutCopyMode = False
Selection.Copy
ActiveWindow.WindowState = xlMinimized
Range("B4").Select
ActiveSheet.Paste
Columns("B:B").Select
Application.CutCopyMode = False
Selection.Cut
ActiveWindow.ScrollColumn = 242
Columns("IU:IU").Select
Selection.Insert Shift:=xlToRight
End Sub

As you can see, this obviously opens "P:\\Data2\peer1-branch-1.xls
everytime. Is there a way I can open whatever address is in cell B2?

I hope it is clearer this time, if not, please let me know.

Thanks,
Nic

--
Message posted from http://www.ExcelForum.com

Reply
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
How do use listed pathname to link values from another workbook? simplymidori[_2_] Excel Discussion (Misc queries) 1 July 19th 07 07:03 AM
Can't see 2 open workbooks listed in the Window tab TomD Charts and Charting in Excel 1 June 20th 06 10:06 PM
Copying A Worksheet From Each Open Workbook to an new Workbook carl Excel Worksheet Functions 1 January 3rd 06 05:37 PM
open workbook on same worksheet Anthony Excel Discussion (Misc queries) 2 October 5th 05 06:42 PM
Is there away to open a worksheet outside of the workbook? Jeff Excel Discussion (Misc queries) 2 March 11th 05 03:25 PM


All times are GMT +1. The time now is 06:18 AM.

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

About Us

"It's about Microsoft Excel"