Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default link a cell in the 'Master' worksheet list to a 'Detail' worksheet

I have a 'Master' worksheet containing a list of the other worksheets in this
workbook. The list will be added to regularly. I want to create a macro that
when run will take the worksheet name that is highlighted in the 'master'
list and GoTo cell A1 on the related 'Detail' sheet.
Any help would be much appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default link a cell in the 'Master' worksheet list to a 'Detail' worksheet

=INDIRECT("'"&A2&"'!A1)

where A2 holds the sheet name

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Paul Condron" wrote in message
...
I have a 'Master' worksheet containing a list of the other worksheets in

this
workbook. The list will be added to regularly. I want to create a macro

that
when run will take the worksheet name that is highlighted in the 'master'
list and GoTo cell A1 on the related 'Detail' sheet.
Any help would be much appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default link a cell in the 'Master' worksheet list to a 'Detail' works

Bob,

Many thanks but I can't get this to work. I have played around with the " '
and ( ) but I can't seem to get the logic right. I also tried to insert a ,
before A1 but that didn't seem to help either. I'm probably doing something
stupid!
Regards
Paul

"Bob Phillips" wrote:

=INDIRECT("'"&A2&"'!A1)

where A2 holds the sheet name

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Paul Condron" wrote in message
...
I have a 'Master' worksheet containing a list of the other worksheets in

this
workbook. The list will be added to regularly. I want to create a macro

that
when run will take the worksheet name that is highlighted in the 'master'
list and GoTo cell A1 on the related 'Detail' sheet.
Any help would be much appreciated.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default link a cell in the 'Master' worksheet list to a 'Detail' works

Paul,

The syntax is

=INDIRECT(double-quote single-quote double-quote & A2 &
double-quote single-quote double-quote ! A1 )





"Paul Condron" wrote in
message
...
Bob,

Many thanks but I can't get this to work. I have played around
with the " '
and ( ) but I can't seem to get the logic right. I also tried
to insert a ,
before A1 but that didn't seem to help either. I'm probably
doing something
stupid!
Regards
Paul

"Bob Phillips" wrote:

=INDIRECT("'"&A2&"'!A1)

where A2 holds the sheet name

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Paul Condron" wrote
in message
...
I have a 'Master' worksheet containing a list of the other
worksheets in

this
workbook. The list will be added to regularly. I want to
create a macro

that
when run will take the worksheet name that is highlighted in
the 'master'
list and GoTo cell A1 on the related 'Detail' sheet.
Any help would be much appreciated.






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default link a cell in the 'Master' worksheet list to a 'Detail' works

Chip,

Thanks. I followed this exactly - I think but it still tells me I have an
error. The particular worksheet I tried it on is labelled - Accel_Lifts -
and so I got:

=INDIRECT("'"&Accel_Lifts&"'"!A1)

But it comes up as a syntax error!

Paul

"Chip Pearson" wrote:

Paul,

The syntax is

=INDIRECT(double-quote single-quote double-quote & A2 &
double-quote single-quote double-quote ! A1 )





"Paul Condron" wrote in
message
...
Bob,

Many thanks but I can't get this to work. I have played around
with the " '
and ( ) but I can't seem to get the logic right. I also tried
to insert a ,
before A1 but that didn't seem to help either. I'm probably
doing something
stupid!
Regards
Paul

"Bob Phillips" wrote:

=INDIRECT("'"&A2&"'!A1)

where A2 holds the sheet name

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Paul Condron" wrote
in message
...
I have a 'Master' worksheet containing a list of the other
worksheets in
this
workbook. The list will be added to regularly. I want to
create a macro
that
when run will take the worksheet name that is highlighted in
the 'master'
list and GoTo cell A1 on the related 'Detail' sheet.
Any help would be much appreciated.








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default link a cell in the 'Master' worksheet list to a 'Detail' works

I omitted the trailing quote. You don't need to substitute the cell value,
Excel will do that, so use

=INDIRECT("'"&A2&"'!A1")

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Paul Condron" wrote in message
...
Chip,

Thanks. I followed this exactly - I think but it still tells me I have an
error. The particular worksheet I tried it on is labelled - Accel_Lifts -
and so I got:

=INDIRECT("'"&Accel_Lifts&"'"!A1)

But it comes up as a syntax error!

Paul

"Chip Pearson" wrote:

Paul,

The syntax is

=INDIRECT(double-quote single-quote double-quote & A2 &
double-quote single-quote double-quote ! A1 )





"Paul Condron" wrote in
message
...
Bob,

Many thanks but I can't get this to work. I have played around
with the " '
and ( ) but I can't seem to get the logic right. I also tried
to insert a ,
before A1 but that didn't seem to help either. I'm probably
doing something
stupid!
Regards
Paul

"Bob Phillips" wrote:

=INDIRECT("'"&A2&"'!A1)

where A2 holds the sheet name

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Paul Condron" wrote
in message
...
I have a 'Master' worksheet containing a list of the other
worksheets in
this
workbook. The list will be added to regularly. I want to
create a macro
that
when run will take the worksheet name that is highlighted in
the 'master'
list and GoTo cell A1 on the related 'Detail' sheet.
Any help would be much appreciated.








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
automatically appending newly added data on worksheet to a master list worksheet tabylee via OfficeKB.com Links and Linking in Excel 0 December 17th 09 04:24 PM
How can I pull Cell value from Detail worksheet into Summary sheet? John Kotuby[_2_] Excel Worksheet Functions 2 June 16th 09 08:50 PM
Summary worksheet reference to detail worksheet Quimera New Users to Excel 6 September 9th 07 05:47 PM
How can I link cell colours from worksheet to worksheet/workbook? Evelyn Excel Worksheet Functions 1 July 5th 05 09:16 PM
how do i link a number of worksheets to one master worksheet? Rusty Excel Worksheet Functions 0 January 24th 05 08:49 AM


All times are GMT +1. The time now is 08:28 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"