PC Review


Reply
Thread Tools Rate Thread

Consolidation of data from cell in active sheet of closed workbook

 
 
=?Utf-8?B?TmVpbCBYIFBlZWw=?=
Guest
Posts: n/a
 
      8th Mar 2007
Your expert advice would be most appreciated:
Using Excel 2003, I want to sum the contents of cell A1 on the last active
worksheet of 22 other workbooks into cell A1 of a master consolidation
workbook. The active sheet in the 22 workbooks will change from week to
week, so I need the master workbook to only retrieve data from cell A1 in the
sheet that was visible when the other 22 workbooks were last saved.

I can put a formula in the master consolidatioin workbook to link to a named
worksheet in the 22 other workbooks but cannot get it to link to the cell in
the last active worksheet.

I hope this makes sense, and that you can assist.

Regards
 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWFydGluIEZpc2hsb2Nr?=
Guest
Posts: n/a
 
      8th Mar 2007
Neil you can't have volatile links that link to the active sheet.

The easiest way to do it is to have a consistent naming convention and then
do a shearch replace to replace last week's links with this weeks.

Or write some vba to do it using a table.

There is the indirect function but this only works if the worksheets are
open and therefore not very good.


--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"Neil X Peel" wrote:

> Your expert advice would be most appreciated:
> Using Excel 2003, I want to sum the contents of cell A1 on the last active
> worksheet of 22 other workbooks into cell A1 of a master consolidation
> workbook. The active sheet in the 22 workbooks will change from week to
> week, so I need the master workbook to only retrieve data from cell A1 in the
> sheet that was visible when the other 22 workbooks were last saved.
>
> I can put a formula in the master consolidatioin workbook to link to a named
> worksheet in the 22 other workbooks but cannot get it to link to the cell in
> the last active worksheet.
>
> I hope this makes sense, and that you can assist.
>
> Regards

 
Reply With Quote
 
=?Utf-8?B?TmVpbCBYIFBlZWw=?=
Guest
Posts: n/a
 
      8th Mar 2007
Martin,

Thanks for your prompt response.

Having searched for a solution in Excel's help files, to no avail, i thought
VBA might be the answer. I can perform basic macro editing, but I think this
task will be beyond my capabilities.

Reluctantly, I will continue to perform a search & replace on the cell
formulas, as you have suggested, unless you can point me in the direction of
a helpful online resource.

Many thanks again.

Neil



"Martin Fishlock" wrote:

> Neil you can't have volatile links that link to the active sheet.
>
> The easiest way to do it is to have a consistent naming convention and then
> do a shearch replace to replace last week's links with this weeks.
>
> Or write some vba to do it using a table.
>
> There is the indirect function but this only works if the worksheets are
> open and therefore not very good.
>
>
> --
> Hope this helps
> Martin Fishlock, Bangkok, Thailand
> Please do not forget to rate this reply.
>
>
> "Neil X Peel" wrote:
>
> > Your expert advice would be most appreciated:
> > Using Excel 2003, I want to sum the contents of cell A1 on the last active
> > worksheet of 22 other workbooks into cell A1 of a master consolidation
> > workbook. The active sheet in the 22 workbooks will change from week to
> > week, so I need the master workbook to only retrieve data from cell A1 in the
> > sheet that was visible when the other 22 workbooks were last saved.
> >
> > I can put a formula in the master consolidatioin workbook to link to a named
> > worksheet in the 22 other workbooks but cannot get it to link to the cell in
> > the last active worksheet.
> >
> > I hope this makes sense, and that you can assist.
> >
> > Regards

 
Reply With Quote
 
=?Utf-8?B?TWFydGluIEZpc2hsb2Nr?=
Guest
Posts: n/a
 
      8th Mar 2007
Neil

The easiest way to do it is to record a macro to replace the text.

You need to set up a cell where you can remeber the current string so that
you can use a message box to ask the user the type in the replacement text.

Get your code working and I'll have a look at it.
--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"Neil X Peel" wrote:

> Martin,
>
> Thanks for your prompt response.
>
> Having searched for a solution in Excel's help files, to no avail, i thought
> VBA might be the answer. I can perform basic macro editing, but I think this
> task will be beyond my capabilities.
>
> Reluctantly, I will continue to perform a search & replace on the cell
> formulas, as you have suggested, unless you can point me in the direction of
> a helpful online resource.
>
> Many thanks again.
>
> Neil
>
>
>
> "Martin Fishlock" wrote:
>
> > Neil you can't have volatile links that link to the active sheet.
> >
> > The easiest way to do it is to have a consistent naming convention and then
> > do a shearch replace to replace last week's links with this weeks.
> >
> > Or write some vba to do it using a table.
> >
> > There is the indirect function but this only works if the worksheets are
> > open and therefore not very good.
> >
> >
> > --
> > Hope this helps
> > Martin Fishlock, Bangkok, Thailand
> > Please do not forget to rate this reply.
> >
> >
> > "Neil X Peel" wrote:
> >
> > > Your expert advice would be most appreciated:
> > > Using Excel 2003, I want to sum the contents of cell A1 on the last active
> > > worksheet of 22 other workbooks into cell A1 of a master consolidation
> > > workbook. The active sheet in the 22 workbooks will change from week to
> > > week, so I need the master workbook to only retrieve data from cell A1 in the
> > > sheet that was visible when the other 22 workbooks were last saved.
> > >
> > > I can put a formula in the master consolidatioin workbook to link to a named
> > > worksheet in the 22 other workbooks but cannot get it to link to the cell in
> > > the last active worksheet.
> > >
> > > I hope this makes sense, and that you can assist.
> > >
> > > Regards

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Export cell data to closed workbook cluckers Microsoft Excel Misc 7 23rd Jul 2009 08:43 PM
Send Data From Active Sheet to Closed Sheet on Network ryguy7272 Microsoft Excel Programming 4 3rd Jul 2008 08:44 PM
productivity consolidation work sheet for a 32 page workbook =?Utf-8?B?RmxvcmlkYSBSaWNoYXJk?= Microsoft Excel Misc 7 2nd Nov 2007 07:33 PM
Move Data From Active Sheet to New WorkBook =?Utf-8?B?TGVu?= Microsoft Excel Programming 2 5th Jul 2007 02:32 PM
ADO - recordset - closed excel workbook - know sheet name and cell name but no named ranges defined grahamd Microsoft Excel Programming 1 18th Oct 2004 06:13 PM


Features
 

Advertising
 

Newsgroups
 


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