LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Spaces in sheet names

I wanted to ask the proper way to enter a String into Range() that contains a space (or many spaces) in it. For example (the excerpt from my macro which triggers
the error):

cell_name = "sheet name with spaces!$A$1"
foo = q & Range(cell_adr) & q & ","

(I've set q to be the double quotation character).

I suspect the error occurs because of the spaces
because if I change the sheet's name to say,
"sheetwithnospaces" then there's no problem.


 
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
Another question regarding matching names and adding spaces ILunacy Excel Worksheet Functions 2 February 16th 10 03:20 PM
Matching names and inserting spaces ILunacy Excel Worksheet Functions 0 February 15th 10 06:15 PM
Matching names and inserting spaces ILunacy Excel Worksheet Functions 3 February 15th 10 03:17 PM
Open Excel file get error with file names that have spaces in the Kozmo Setting up and Configuration of Excel 6 October 29th 08 02:51 AM
formula to bring value from another sheet with different spaces veena Excel Discussion (Misc queries) 6 July 11th 08 12:25 AM


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