Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 56
Default Hyperlinks and spaces

I have a list of worksheet names in a column from A1. These names can change and can be
text or alphanumeric and can contain spaces between text or between text and numbers. The
list is used to create worksheets with the same tab name. In column B starting at B1 I
have this formula

=HYPERLINK("#"&A1&"!A1",A1)

This is to allow me to jump to each of the relevant worksheets. The problem is that it
works fine when the tab names have no spaces but as soon as I have something like "Field
20" or "Field List" I get "reference not valid". I know I could concatenate everything
with a "_" or something in the spaces but for this exercise I really would like to avoid
that. My ideal situation is a variable sized tab name with or without spaces, ie no
restrictions other than things like ? / & etc, that I can click on to take me to the
worksheet, bearing in mind that the names can change so it would need to be indirect I
think. I would value any help.

Regards
Graham
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Hyperlinks and spaces

Quite easy to rectify - amend your formula to this:

=HYPERLINK("#'"&A1&"'!A1",A1)

Note the apostrophe after the # and before the !, which allows you to
have spaces in your sheet names.

Hope this helps.

Pete

On Jul 2, 8:48*am, Graham H wrote:
I have a list of worksheet names in a column from A1. These names can change and can be
text or alphanumeric and can contain spaces between text or between text and numbers. The
list is used to create worksheets with the same tab name. In column B starting at B1 I
have this formula

=HYPERLINK("#"&A1&"!A1",A1)

This is to allow me to jump to each of the relevant worksheets. The problem is that it
works fine when the tab names have no spaces but as soon as I have something like "Field
20" or "Field List" I get "reference not valid". I know I could concatenate everything
with a "_" or something in the spaces but for this exercise I really would like to avoid
that. My ideal situation is a variable sized tab name with or without spaces, ie no
restrictions other than things like ? / & etc, that I can click on to take me to the
worksheet, bearing in mind that the names can change so it would need to be indirect I
think. I would value any help.

Regards
Graham


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 56
Default Hyperlinks and spaces

Pete_UK wrote:
Quite easy to rectify - amend your formula to this:

=HYPERLINK("#'"&A1&"'!A1",A1)

Note the apostrophe after the # and before the !, which allows you to
have spaces in your sheet names.

Hope this helps.

Pete

Many thanks for that Pete it fits the bill perfectly. Much appreciated.

Graham



On Jul 2, 8:48 am, Graham H wrote:
I have a list of worksheet names in a column from A1. These names can change and can be
text or alphanumeric and can contain spaces between text or between text and numbers. The
list is used to create worksheets with the same tab name. In column B starting at B1 I
have this formula

=HYPERLINK("#"&A1&"!A1",A1)

This is to allow me to jump to each of the relevant worksheets. The problem is that it
works fine when the tab names have no spaces but as soon as I have something like "Field
20" or "Field List" I get "reference not valid". I know I could concatenate everything
with a "_" or something in the spaces but for this exercise I really would like to avoid
that. My ideal situation is a variable sized tab name with or without spaces, ie no
restrictions other than things like ? / & etc, that I can click on to take me to the
worksheet, bearing in mind that the names can change so it would need to be indirect I
think. I would value any help.

Regards
Graham


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Hyperlinks and spaces

You're welcome, Graham - thanks for feeding back.

Pete

On Jul 2, 10:00*am, Graham H wrote:

Many thanks for that Pete it fits the bill perfectly. Much appreciated.

Graham

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
Hyperlinks: Hyperlinks change on copy/paste? Rick S. Excel Worksheet Functions 0 November 13th 07 08:19 PM
Update 2000 Excel hyperlinks to 2003 hyperlinks lonv155 Excel Worksheet Functions 4 October 25th 07 05:51 AM
how do I remove leading spaces and leave the remianing spaces w Debi Excel Worksheet Functions 6 February 28th 07 03:29 PM
spaces not recognized as spaces windsurferLA Excel Worksheet Functions 9 July 27th 06 11:49 AM
Excel Hyperlinks- cell content v. hyperlinks herpetafauna Excel Discussion (Misc queries) 2 May 23rd 06 04:39 AM


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