Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Linking a several workbooks and worksheets

Hi
I am trying to consolidate information from 12 different workbooks
each with 12 worksheets (Jan-Dec) into one 'Group' Workbook (also
split by month). At present I am linking the cells as follow:
=[leisureclub1.xls]January!$F$16
=[leisureclub1.xls]January!$F$17
=[leisureclub1.xls]January!$F$18
=[leisureclub2.xls]January!$F$16
=[leisureclub2.xls]January!$F$17
and so on. this is very time consuming. Is there any way i can specify
the worksheet refernce from a cell in my consolidated spreadsheet i.e
=[leisureclub1.xls]"cell A1"!$F$16
=[leisureclub1.xls]"cell A1"!$F$17
This would save me having to link the cells across each of the 12
worksheets.
i hope this makes sense. I think i have confused myself!
Justin
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Linking a several workbooks and worksheets

Sub writeformula()
for each cell in selection
cell.formula = "='[LeisureClub1.xls]" & range("B7").Value & _
"'!" & cell.Address(0,0)
Next
End Sub

would be a guess.

select the cells where you want the formula and run the macro.

--
Regards,
Tom Ogilvy

"Justin" wrote in message
om...
Hi
I am trying to consolidate information from 12 different workbooks
each with 12 worksheets (Jan-Dec) into one 'Group' Workbook (also
split by month). At present I am linking the cells as follow:
=[leisureclub1.xls]January!$F$16
=[leisureclub1.xls]January!$F$17
=[leisureclub1.xls]January!$F$18
=[leisureclub2.xls]January!$F$16
=[leisureclub2.xls]January!$F$17
and so on. this is very time consuming. Is there any way i can specify
the worksheet refernce from a cell in my consolidated spreadsheet i.e
=[leisureclub1.xls]"cell A1"!$F$16
=[leisureclub1.xls]"cell A1"!$F$17
This would save me having to link the cells across each of the 12
worksheets.
i hope this makes sense. I think i have confused myself!
Justin



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Linking a several workbooks and worksheets

You got a response at your first post.

Justin wrote:

Hi
I am trying to consolidate information from 12 different workbooks
each with 12 worksheets (Jan-Dec) into one 'Group' Workbook (also
split by month). At present I am linking the cells as follow:
=[leisureclub1.xls]January!$F$16
=[leisureclub1.xls]January!$F$17
=[leisureclub1.xls]January!$F$18
=[leisureclub2.xls]January!$F$16
=[leisureclub2.xls]January!$F$17
and so on. this is very time consuming. Is there any way i can specify
the worksheet refernce from a cell in my consolidated spreadsheet i.e
=[leisureclub1.xls]"cell A1"!$F$16
=[leisureclub1.xls]"cell A1"!$F$17
This would save me having to link the cells across each of the 12
worksheets.
i hope this makes sense. I think i have confused myself!
Justin


--

Dave Peterson
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
Linking worksheets in different workbooks changingtheworld Excel Discussion (Misc queries) 0 April 13th 09 05:04 PM
Linking worksheets in different workbooks changingtheworld Excel Worksheet Functions 0 April 13th 09 05:03 PM
Linking Worksheets and Workbooks Michael in Texas Excel Worksheet Functions 1 January 10th 07 02:41 AM
Linking worksheets across workbooks Steven M. Britton Excel Discussion (Misc queries) 3 April 14th 05 08:40 PM
Linking set of worksheets between different workbooks! gp Excel Discussion (Misc queries) 0 March 22nd 05 09:27 PM


All times are GMT +1. The time now is 10:26 AM.

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"