Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Link a file to worksheet

I'm trying to open a worksheet depending on the month that the data is for.
For example, If I am looking at Jan Balance sheet on my first tab, I'd like
to pull the Jan Trial balance from a file. I have written a VLookup so that
the proper path/filename is displayed. How do I get Excel to open the file
name in cell A1?

Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Link a file to worksheet

Here's a little macro that will do it.........

Sub OpenFilenameInA1()
Worksheets("sheet1").Select
Workbooks.Open FileName:=Range("a1").Value
End Sub

Vaya con Dios,
Chuck, CABGx3



"Stacie" wrote:

I'm trying to open a worksheet depending on the month that the data is for.
For example, If I am looking at Jan Balance sheet on my first tab, I'd like
to pull the Jan Trial balance from a file. I have written a VLookup so that
the proper path/filename is displayed. How do I get Excel to open the file
name in cell A1?

Thank you.

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
Personal File Link with Worksheet Mervyn Thomas Excel Discussion (Misc queries) 3 December 19th 07 09:40 PM
Is it possible to link cell formatting in Excel from file to file KimW Excel Discussion (Misc queries) 4 August 17th 06 07:03 PM
Link worksheet totals to a summary worksheet in the same workbook Carolyn Excel Worksheet Functions 0 March 3rd 06 04:36 PM
I want in one worksheet to relatively link to/reference cells in another without changing the format of the current worksheet. [email protected] Excel Discussion (Misc queries) 0 September 22nd 05 04:39 PM
How to link Excel worksheet tab names to dates in each worksheet? Pat Excel Worksheet Functions 9 January 31st 05 07:51 AM


All times are GMT +1. The time now is 08:53 PM.

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"