Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default recalc question

Hi,

I have a function thisbookname() which returns the full path name of
the file. However, if the file is moved to another directory and then
opened, the content of the =thisbookname() cell is not updated. F9
does not change the value. Nor does the VBA "Recalculate" command.

How to fix this?

Thanks!

Bura
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default recalc question

Bura,

Excel doesn't keep track of where it was "opened from"
It does keep track of where it was "saved last".
If you move the file and then open it, it thinks that it's still
in the old location. If you save the file in the directory from
which it was opened, your function should work correctly.

John

Bura Tino wrote:

Hi,

I have a function thisbookname() which returns the full path name of
the file. However, if the file is moved to another directory and then
opened, the content of the =thisbookname() cell is not updated. F9
does not change the value. Nor does the VBA "Recalculate" command.

How to fix this?

Thanks!

Bura


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default recalc question

...

OK, so what do I do in the scenario when the file is moved and then
opened from a different directory? Or, better still, emailed to
someone?

How about a kluge: thisbookname(rand())?


Bura,

Excel doesn't keep track of where it was "opened from"
It does keep track of where it was "saved last".
If you move the file and then open it, it thinks that it's still
in the old location. If you save the file in the directory from
which it was opened, your function should work correctly.

John

Bura Tino wrote:

Hi,

I have a function thisbookname() which returns the full path name of
the file. However, if the file is moved to another directory and then
opened, the content of the =thisbookname() cell is not updated. F9
does not change the value. Nor does the VBA "Recalculate" command.

How to fix this?

Thanks!

Bura

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
Can't stop recalc [email protected] Excel Worksheet Functions 2 April 24th 09 01:29 PM
cell does not recalc revdeacon Excel Worksheet Functions 3 December 2nd 08 09:51 PM
How to tell Excel to recalc, unconditionally, now? [email protected] New Users to Excel 2 July 1st 08 02:28 AM
Run recalc until a specified vaule is reached. comotoman Excel Discussion (Misc queries) 3 September 27th 05 01:46 AM
Automatic Recalc DME Excel Worksheet Functions 1 March 21st 05 08:05 PM


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