Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 147
Default Application.Evaluate("5705")

Hi guys,

Could you try something for me?

Open Excel, go to vbe, open immediate window and execute

? Application.Evaluate("5705")


Could you tell me what value you get and why I get -4146
Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Application.Evaluate("5705")

I think you should tell us which version and Service Pack of Excel you are
using and which operating system it is running on. I am using Excel 2003 SP
3 on Vista Ultimate and that expression prints 5705 for me.

--
Rick (MVP - Excel)


"witek" wrote in message
...
Hi guys,

Could you try something for me?

Open Excel, go to vbe, open immediate window and execute

? Application.Evaluate("5705")


Could you tell me what value you get and why I get -4146
Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Application.Evaluate("5705")

I got 5705, not sure why you got what you did.

"witek" wrote:

Hi guys,

Could you try something for me?

Open Excel, go to vbe, open immediate window and execute

? Application.Evaluate("5705")


Could you tell me what value you get and why I get -4146
Thanks



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Application.Evaluate("5705")

I just fired up my XL2007 SP2 and the expression prints out 5705 on it as
well.

--
Rick (MVP - Excel)


"Rick Rothstein" wrote in message
...
I think you should tell us which version and Service Pack of Excel you are
using and which operating system it is running on. I am using Excel 2003 SP
3 on Vista Ultimate and that expression prints 5705 for me.

--
Rick (MVP - Excel)


"witek" wrote in message
...
Hi guys,

Could you try something for me?

Open Excel, go to vbe, open immediate window and execute

? Application.Evaluate("5705")


Could you tell me what value you get and why I get -4146
Thanks




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 147
Default Application.Evaluate("5705")

Rick Rothstein wrote:
I think you should tell us which version and Service Pack of Excel you
are using and which operating system it is running on. I am using Excel
2003 SP 3 on Vista Ultimate and that expression prints 5705 for me.



Excel 2003 (11.8307.8221) SP3

Server 2008 64, Windows XP. It does not matter.

It is even more weird.
It gives -4146 during debugging in one instance of Excel . If I run
another instance of Excel at the same time it gives right value.

Any idea?



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 147
Default Application.Evaluate("5705")

witek wrote:
Hi guys,

Could you try something for me?

Open Excel, go to vbe, open immediate window and execute

? Application.Evaluate("5705")


Could you tell me what value you get and why I get -4146
Thanks




More fun

? Application.Evaluate("5705")
-4146
5705
-4146


5705 is when my file is closed.
-4146 when my file is open






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
Evaluate "nested-merge" function? Mikael Lindqvist Excel Worksheet Functions 3 November 3rd 08 04:53 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
How does Excel evaluate embedded "IF" statements Kc-Mass Excel Programming 5 January 6th 07 03:36 PM
"WinForm Application" to act as "RTD Server" using .Net mduraidi Excel Discussion (Misc queries) 0 March 30th 06 01:01 PM
?Application.Evaluate("max(len(A1:X20))") Tim Childs Excel Programming 3 September 25th 04 03:53 PM


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