Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Table of contents

Is there any way I can make a table of contents in my workbook.

I want the contents to be on the first sheet and pick up the tab name and
cell d5 in each tab. How would I go about doing this?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 510
Default Table of contents

Hi

Below is an UDF. Copy this into your workbook's module. Then on 1st sheet,
p.e. into A1 enter the formula
=IF(ISERROR(TABI(ROW(),NOW()),"",TABI(ROW())
, and copy down at least for as much rows as you have sheets in workbook.

Into B1 enter the formula
=IF($A1="","",INDIRECT("'" & $A1 & "'!D5"))
and copy it down too.


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )

**********
The UDF is here!

Option Explicit

Public Function TabI(TabIndex As Integer, Optional parVolatile As Date) As
String
TabI = Sheets(TabIndex).Name
End Function

***********


"Funkyfido" wrote in message
...
Is there any way I can make a table of contents in my workbook.

I want the contents to be on the first sheet and pick up the tab name and
cell d5 in each tab. How would I go about doing this?

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Table of contents

Sorry but this doesn't make much sense to me, can you explain.

"Arvi Laanemets" wrote:

Hi

Below is an UDF. Copy this into your workbook's module. Then on 1st sheet,
p.e. into A1 enter the formula
=IF(ISERROR(TABI(ROW(),NOW()),"",TABI(ROW())
, and copy down at least for as much rows as you have sheets in workbook.

Into B1 enter the formula
=IF($A1="","",INDIRECT("'" & $A1 & "'!D5"))
and copy it down too.


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )

**********
The UDF is here!

Option Explicit

Public Function TabI(TabIndex As Integer, Optional parVolatile As Date) As
String
TabI = Sheets(TabIndex).Name
End Function

***********


"Funkyfido" wrote in message
...
Is there any way I can make a table of contents in my workbook.

I want the contents to be on the first sheet and pick up the tab name and
cell d5 in each tab. How would I go about doing this?

Thanks




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 510
Default Table of contents

Hi

Open your Excel file
Press Atl+F11 - the VBA window openes - there are 2-4 child windows
(Project, the biggest one without special name, and maybe also Propertries
and Watch)
In Project window, you current project (i.e. workbook) and its objects are
diaplayed. When you have there container Modules with one or several Module
objects (i.e. you did have some UDF's or Procedures in this workbook
earlier), you can activate some existing module (double-click on it).
When you didn't have any modules, or you decided to use a new one, select
from menu InsertModule, and then activate it.
Copy the 1st row (Option Explicit) at top of module
Copy the rest of code below it and close the VBA window. Now you can use the
function TABI() as any regular one - in Function Wizard it is displayed in
User Defined categorie. Proceed with entering formulas on 1st sheet as I
described in previous post.


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"Funkyfido" wrote in message
...
Sorry but this doesn't make much sense to me, can you explain.

"Arvi Laanemets" wrote:

Hi

Below is an UDF. Copy this into your workbook's module. Then on 1st
sheet,
p.e. into A1 enter the formula
=IF(ISERROR(TABI(ROW(),NOW()),"",TABI(ROW())
, and copy down at least for as much rows as you have sheets in workbook.

Into B1 enter the formula
=IF($A1="","",INDIRECT("'" & $A1 & "'!D5"))
and copy it down too.


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )

**********
The UDF is here!

Option Explicit

Public Function TabI(TabIndex As Integer, Optional parVolatile As Date)
As
String
TabI = Sheets(TabIndex).Name
End Function

***********


"Funkyfido" wrote in message
...
Is there any way I can make a table of contents in my workbook.

I want the contents to be on the first sheet and pick up the tab name
and
cell d5 in each tab. How would I go about doing this?

Thanks






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
Making A Table of Contents robertstovertoronto Excel Discussion (Misc queries) 4 June 20th 08 03:53 PM
Table of Contents Deb Excel Discussion (Misc queries) 1 March 28th 07 09:23 PM
Table of contents/index Peter Barker Excel Discussion (Misc queries) 5 February 10th 07 05:26 PM
Table of contents for Charts Ajay Excel Discussion (Misc queries) 2 January 6th 05 04:55 PM
EXCEL Table of Contents robin Excel Worksheet Functions 1 January 5th 05 08:50 PM


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