从IDE运行代码 [英] Run code from IDE

查看:199
本文介绍了从IDE运行代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何直接从IDE运行一些代码?现在我制作了一个

的临时按钮并将代码放在后面,然后我运行调试模式

然后点击按钮。有没有办法突出显示一些代码和

告诉它运行它?是否有暂存器?在VBA中键入窗口

我可以编写一些简单的代码来执行吗?感谢您的帮助

提前

解决方案

在调试模式下,您可以在即时窗口中编写和执行


" Bryan" <峰; br ******* @ gmail.com>在消息中写道

news:11 ********************** @ e56g2000cwe.googlegr oups.com ...

如何直接从IDE运行一些代码?现在我制作了一个
临时按钮并将代码放在后面,然后我运行调试模式
并单击按钮。有没有办法突出显示一些代码并告诉它运行它?是否有暂存器?像在VBA中的类型窗口
我可以编写一些简单的代码来执行吗?感谢您的帮助
提前



这是非常有限的,例如您不能声明变量。


-

(OHM) - 一名男子

AKA Terry Burns - http://TrainingOn.net

" Carl-Johan Wik" < CJ *** @ hotmail.com>在消息中写道

news:例如**************** @ TK2MSFTNGP02.phx.gbl ...

在调试模式下你可以在即时窗口中书写和执行

布莱恩 <峰; br ******* @ gmail.com>在消息中写道
新闻:11 ********************** @ e56g2000cwe.googlegr oups.com ...

我如何直接从IDE运行一些代码?现在我制作了一个
临时按钮并将代码放在后面,然后我运行调试模式
并单击按钮。有没有办法突出显示一些代码并告诉它运行它?是否有暂存器?像在VBA中的类型窗口
我可以编写一些简单的代码来执行吗?感谢您的帮助
提前




我希望有办法运行单个子或函数,甚至打开

a表格而不必将其设置为默认启动表格。也许我会错过某些东西当你们想要测试小东西或者运行一个小小的维护程序时,你会怎么做?


How can i run a bit of code straight from the IDE? Right now i make a
temporary button and put the code behind that, then i run debug mode
and click on the button. Is there a way to highlight some code and
tell it to run that? Is there a "scratchpad" type window like in VBA
where I can write some simple code to be executed? Thanks for the help
in advance

解决方案

In debug mode you can write and execute in immediate window

"Bryan" <br*******@gmail.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...

How can i run a bit of code straight from the IDE? Right now i make a
temporary button and put the code behind that, then i run debug mode
and click on the button. Is there a way to highlight some code and
tell it to run that? Is there a "scratchpad" type window like in VBA
where I can write some simple code to be executed? Thanks for the help
in advance



This is quite limited, for example you cannot declare variables.

--
( OHM ) - One Handed Man
AKA Terry Burns - http://TrainingOn.net
"Carl-Johan Wik" <cj***@hotmail.com> wrote in message
news:eg****************@TK2MSFTNGP02.phx.gbl...

In debug mode you can write and execute in immediate window

"Bryan" <br*******@gmail.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...

How can i run a bit of code straight from the IDE? Right now i make a
temporary button and put the code behind that, then i run debug mode
and click on the button. Is there a way to highlight some code and
tell it to run that? Is there a "scratchpad" type window like in VBA
where I can write some simple code to be executed? Thanks for the help
in advance




I wish there was a way to run a single sub or function, or even to open
a form without having to set it as the default start up form. Maybe I
am missing something When you guys want to test little things or run a
little maintenece procedure, what do you do?


这篇关于从IDE运行代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆