Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 400
Default Excel Automation/Immediate Window

Is it possible to type and execute code in the Immediate Window of an
instance of Excel automation?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Excel Automation/Immediate Window

Yep. You may find it very useful when debugging. I'm not sure I would expect
the users of a workbook to do this, though.

AA2e72E wrote:

Is it possible to type and execute code in the Immediate Window of an
instance of Excel automation?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 400
Default Excel Automation/Immediate Window

On clicking POST, I realised that my question would be misunderstood!

What I meant to ask was this:

Is is possible for to type/write code programatically (from the client using
Excel as an automation server) into the Immediate Window and execute it?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Excel Automation/Immediate Window

I think it would be a real kludge. I remember someone posting code to clear
the immediate window from that instance of excel and it was basically a
Sendkeys operation. (and when there was a glitch, it wiped all the code out
a module).

Depending on what you want to do, Windows Scripting Host has an evaluate
command I believe.

--
Regards,
Tom Ogilvy


"AA2e72E" wrote:

On clicking POST, I realised that my question would be misunderstood!

What I meant to ask was this:

Is is possible for to type/write code programatically (from the client using
Excel as an automation server) into the Immediate Window and execute it?



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 400
Default Excel Automation/Immediate Window

I wanted to be able to execute code in the immediate window when I do not
need the result or when there is no result. I guess it is easier to add
subroutines from the Client and then run them on the Server.

An example of what I had in mind: From the Client, I wanted to be able to

Name ThisFile As ThatFile

where Name does not return a result.


"Tom Ogilvy" wrote:

I think it would be a real kludge. I remember someone posting code to clear
the immediate window from that instance of excel and it was basically a
Sendkeys operation. (and when there was a glitch, it wiped all the code out
a module).

Depending on what you want to do, Windows Scripting Host has an evaluate
command I believe.

--
Regards,
Tom Ogilvy


"AA2e72E" wrote:

On clicking POST, I realised that my question would be misunderstood!

What I meant to ask was this:

Is is possible for to type/write code programatically (from the client using
Excel as an automation server) into the Immediate Window and execute it?



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
How can I "re-hook" my worksheet window to my Excel window? Jal Excel Discussion (Misc queries) 1 August 29th 08 10:11 PM
The window opens in a smaller window not full sized window. Rachael Excel Discussion (Misc queries) 0 November 7th 06 09:04 PM
In Excel - how to delete new window created from window on tool ba Doug Excel Worksheet Functions 1 April 20th 06 09:22 PM
How do I undo the Excel, Window Menu, New Window command OLDFANG Excel Discussion (Misc queries) 2 March 17th 06 05:31 PM
vc++ automation: opening chart as chart window and setting scale Mike Biolsi Excel Programming 0 February 7th 04 08:13 AM


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