View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] carl.wilkens@gmail.com is offline
external usenet poster
 
Posts: 6
Default Embarassingly simple question regarding VB Editor

Dear all,
excuse me for using space for this simple question -- but I have not
found a resolution in the documentation.

When writing Excel macros in the VB Editor, it almost immediately
immediately fills in blanks, but does not move the cursor
correspondingly -- which is very irritating since this suddenly leaves
me continuing my code in the middle of the line. I have to press
[(line) END] button after every VBE space completion (i e very often),
to continue writing the line in my code.

E g, when writing the following line of code
r(1,2)=-log(p(2))/dt
I get to
r(1,2)=-log(p(2))
when the automatic space completion fills in
r(1, 2) = -Log(p(2#))
*but* leaving the cursor at "#" (# just indicates the cursor
position), so if I do not discover the automatic change and do not
press [END] before continuing with "/dt" I end up with
r(1, 2) = -Log(p(2/dt))
which is clearly not the same thing.

I have switched off 'Auto Syntax Check' but it does not seem to cover
this situation. Any clues on how to e g have the code checking invoked
only when I press return?

Thanks,
Carl