Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code writing from macro

Status
Not open for further replies.

nagyf

Programmer
May 9, 2001
74
HU
When I used Personal Editor to edit source code
for dBase II and Pascal I made macros to
make structures
like
IF ... THEN

ELSE

END IF,

or

SELECT CASE ...

CASE

CASE

ELSE

END SELECT
I pushed ^I or ^S, the macro wrote the above
lines and empty lines between the the went back to the
IF line or SELECT line respectively.
How can I do a similar macro for Access Basic?
The quick and dirty solution that I use Persional Editor II again.
The Pascal If-then-else macro was:
def c-i = [key enter] 'IF THEN BEGIN' [key enter] 'END' [key enter] 'ELSE BEGIN' [key enter] 'END;' [up] [insert line] [up 3] [insert line]

Regards
Ferenc Nagy Ferenc Nagy
|\ /~ ~~|~~~ nagyf@alpha0.iki.kfki.hu Fax: (36-1)-392-2529 New!
| \ | | Institute of Isotope and Surface Chemistry
| \ | -+- 1525 Bp. POB 77. Tel. :(36-1)-392-2550
| \| | `-' ' `-' "The goal of the life is the struggle itself"
 
I have NO clue what you are talking about.
Is the Access or Pascal? DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
Macros don't work that way in Access. You're referring to a use of the word that would make sense in a word processor such as M/S Word, but has no parallel in Access. I suppose you could write some horribly complex routine using VBA that would call some features of Word to do that, but I think it would be overkill for such a relatively minor convenience.

Uncle Jack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top