Back in the day when "macro viruses" were all the rage they sometimes
propagated programming the VBE itself. I think the misanthropes have mostly
moved to the web so not a great deal to worry about, and you can always
disable all macros when opening a workbook.
--
Jim
message | Okay, that worked. Thanks.
|
| A question, though... since that option's default was to be unchecked (at
| least, I'm assuming that since I never visited that tab before), what
| "dangers" does checking it open my system up to?
|
| Rick
|
|
| | > In xl2003 menu system:
| > Tools|Macro|Security|Trusted Publishers tab
| > Check "Trust access to Visual Basic Project"
| >
| >
| >
| > "Rick Rothstein (MVP - VB)" wrote:
| >>
| >> Hmm! When I try that, I keep getting this message... "No Access to
Visual
| >> Basic Project".
| >>
| >> Rick
| >>
| >> | >> >I put it in an ordinary module then called it with this in sheet1 code
| >> >window
| >> > to test it
| >> >
| >> > Sub stance()
| >> > Dim x As Long
| >> > For x = 1 To 10
| >> > Debug.Print x
| >> > Next
| >> > ClearImmediateWindow
| >> > End Sub
| >> >
| >> > Mike
| >> >
| >> > "Rick Rothstein (MVP - VB)" wrote:
| >> >
| >> >> Where are you running it from? I tried placing it in a Sheet's code
| >> >> window
| >> >> (as a macro) and running it either directly from there using the Run
| >> >> button
| >> >> or from a worksheet using Alt+F8. I also tried running it from the
| >> >> Click
| >> >> event of a CommandButton on a UserForm. Neither method cleared the
| >> >> Immediate
| >> >> window.
| >> >>
| >> >> Rick
| >> >>
| >> >>
| >> >> | >> >> > Yes it worked fine
| >> >> >
| >> >> > "Rick Rothstein (MVP - VB)" wrote:
| >> >> >
| >> >> >> Did that code work for you? All that happens for me is the date
and
| >> >> >> time
| >> >> >> are
| >> >> >> printed in the Immediate window... nothing is cleared.
| >> >> >>
| >> >> >> Rick
| >> >> >>
| >> >> >>
| >> >> >> | >> >> >> > very nice i never thought of sendkeys
| >> >> >> >
| >> >> >> > "Anant Basant" wrote:
| >> >> >> >
| >> >> >> >> try the following code.
| >> >> >> >>
| >> >> >> >> Sub DelInImmedate()
| >> >> >> >> Debug.Print Now
| >> >> >> >> Application.SendKeys "^g ^a {DEL}"
| >> >> >> >> End Sub
| >> >> >> >> --
| >> >> >> >> Regards,
| >> >> >> >> Anant
| >> >> >> >>
| >> >> >> >>
| >> >> >> >> "Madiya" wrote:
| >> >> >> >>
| >> >> >> >> > I am using some debug.print statements in my code which
prints
| >> >> >> >> > current
| >> >> >> >> > value of my variables in the immediate window.
| >> >> >> >> > When I run the code again, I have to manually select all and
| >> >> >> >> > delete
| >> >> >> >> > the values from the immediate window.
| >> >> >> >> >
| >> >> >> >> > Is there any way by which I can just run the code to clear
the
| >> >> >> >> > immediate window?
| >> >> >> >> >
| >> >> >> >> > Thanks and Regards,
| >> >> >> >> > Madiya
| >> >> >> >> >
| >> >> >>
| >> >> >>
| >> >>
| >> >>
| >
| > --
| >
| > Dave Peterson
|