LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #12   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Basic Excel functionality collides with VBA code.


"Vic Eldridge" wrote


focus/cell-reference seems to get lost.


I'm not sure what you mean by the above statement. What exactly is going
wrong ?


It looked like the "Target" was changed exidentially by the function-exec..
I found the cause now:

Set Pos = Application.Caller
Adresse = Application.Caller.Address


That are remains from tests and not necessary in the function.
After I commented it out everything runs ok!

At this point, there's two things I'd try.

Firstly, have a play with Application.Volatile and see if that makes any
difference.


Good hint, stmt. seems to be helpful in every function that is called from
cells.
But in this case it wouldn't have made any difference.


Secondly, you could use a public variable to prevent your function's code
from running


This would have been a solution. Thanks
a lot for assistance.

Best Regards
Peter
PS. By the way another question:
Is it possible to unprotect cells but keep the
"format" (like lines surrounding the cells, etc.)


 
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
Protecting Code in Visual Basic Editor (Excel 2003) Johnny S. NH Excel Worksheet Functions 1 August 30th 08 07:26 AM
Essbase over-rides basic Functionality? rbanks[_13_] Excel Programming 1 March 29th 06 08:40 AM
Visual basic Code or editor won't load in Excel johnsday Excel Programming 2 February 2nd 06 06:00 PM
How do I hide my Visual basic code in Excel? geoffc Excel Programming 2 April 7th 05 12:53 PM
Visual Basic Code in Excel Solver[_2_] Excel Programming 0 January 20th 04 07:55 PM


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