LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Nested String Filename Variable

The editor I mentioned is the one that Excel pops up to be helpful with
formula creation. When I typed the string you sent, a message box poped up
letting me know that there was an error in my formula, and I could choose
Help, or OK to continue, or if I wasn't really trying to write a formula, I
should try again, or something like that. It also showed the syntax of the
INDIRECT command, which is what I listed in my last message.

A #REF error is left in the box, if I hit enter and Excel accepts it.
Otherwise, it will not allow me to close the cell because there is an error,
and usually it highlights the A1 part of the text in between the ampersands
(& A1 &). I took that to mean the value in Cell A1, and I tried variations
of the file name, with and without path, with and without single quotes,
double quotes, parentheses, etc., the file was always open, and no success
meant I never got the value of the cell I was naming to show up as the result
of my formula. The only times that I have had the proper result was by
copying and pasting a link.

So, I said to myself, if the filename changes, why not just use CTRL-H and
change all instances of the last filename to the new filename in the cells I
had pasted the links. The result there was that a pop-up box appeared
telling me that there was an incorrect value in a formula on this worksheet
and I couldn't continue.

I'm pretty sure this is a scenario that is a common one, and the only glitch
should have been the possible padding of the worksheet names with spaces, but
I created a test1.xls without spaces in the worksheet names, and that never
worked either.

I've had enough for tonight, and I'm going to sleep. Maybe something will
be clearer tomorrow.

Thanks for your help and for reading the tale of my frustration.

Ed


"JE McGimpsey" wrote:

Not sure what "editor" you're referring to, nor what "ref_test" refers
to.

INDIRECT takes two arguments - the first is the string comprising the
reference, and the second is either TRUE (A1-style reference) or
FALSE(R1C1-style reference). If there is no second argument, TRUE is
assumed.

You still don't say what "no success" or "doesn't work" means. Do you
get a #REF error? A #VALUE! error?

What is the exact entry you're making?


In article ,
ed9213 wrote:

The editor shows "INDIRECT(ref_test, [a1])" , and highlights the A1 in the
formula in blue, under the cell where the formula resides. I have tried to
populate cell A1 with the filename alone, and with the full path, with no
success.




 
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
Need help setting the worksheet header/Footer margins based on string height? Doug Excel Discussion (Misc queries) 0 August 20th 06 02:05 AM
Entering a filename as a variable into cell similar as for footer Doug Excel Discussion (Misc queries) 3 May 17th 06 04:39 AM
Browse File for Mac John Vickers Excel Discussion (Misc queries) 1 February 17th 06 06:23 PM
Auto convert an alphanumeric string (CIS9638S) to numbers only? Gary L Brown Excel Worksheet Functions 1 September 7th 05 01:17 AM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM


All times are GMT +1. The time now is 02:49 PM.

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"