PC Review


Reply
Thread Tools Rate Thread

Converting Macros to VB

 
 
Ed Hawley
Guest
Posts: n/a
 
      23rd Jul 2007
Is there a good way to convert macros to VB when you do not remember how to
program in VB. I am continually running into problems with the macros,
because of security issues, with the systems on which the database is run. I
would like to change them and eliminate the problem. Any suggestions would
help.

Thanks!
Ed


 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      23rd Jul 2007
Access can convert macros to VBA code for you.

With a form open in design view, go to Tools | Macors.
Or select the macro in the Database window, and go to File | Save As.

Look under help for "convert macors" for more info.

The converted macro does have error handling, so it's better than the macro,
but it's still pretty woeful compared with well-designed code.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Ed Hawley" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is there a good way to convert macros to VB when you do not remember how
> to program in VB. I am continually running into problems with the macros,
> because of security issues, with the systems on which the database is run.
> I would like to change them and eliminate the problem. Any suggestions
> would help.
>
> Thanks!
> Ed


 
Reply With Quote
 
Larry Daugherty
Guest
Posts: n/a
 
      23rd Jul 2007
You can't get there from here....

I believe that Access provides a converter that moves you along the
way. I haven't written any Access Macros since it became available so
your mileage may vary...

The warnings you get really have to do with VBA code as much as any
Access Macros. In all other platforms, VBA code is referenced as
"macro".

A piece of trivia: The original "macro" implementation was from
Digital Equipment Corporation (DEC) in its PDP-11, and up, assembler
languages. The software engineer could create the low level referents
once, creating incredibly deep nested macros, and refer to them many
times in the source code with a single line each time. The actual
assembler (compiler) then inserted the entire source code into the
object code each time it was called. A source file of just a few
pages might generate a listing file several inches deep. I believe
that every programming language that has claimed to be "macro" ever
since then is trying to claim similar power and expandability. None
has come even remotely close in exactly the same way.

HTH
--
-Larry-
--

"Ed Hawley" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is there a good way to convert macros to VB when you do not remember

how to
> program in VB. I am continually running into problems with the

macros,
> because of security issues, with the systems on which the database

is run. I
> would like to change them and eliminate the problem. Any suggestions

would
> help.
>
> Thanks!
> Ed
>
>



 
Reply With Quote
 
Ed Hawley
Guest
Posts: n/a
 
      23rd Jul 2007
Thanks Allen,

I will give it a try.

Ed
"Allen Browne" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Access can convert macros to VBA code for you.
>
> With a form open in design view, go to Tools | Macors.
> Or select the macro in the Database window, and go to File | Save As.
>
> Look under help for "convert macors" for more info.
>
> The converted macro does have error handling, so it's better than the
> macro, but it's still pretty woeful compared with well-designed code.
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
> "Ed Hawley" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Is there a good way to convert macros to VB when you do not remember how
>> to program in VB. I am continually running into problems with the macros,
>> because of security issues, with the systems on which the database is
>> run. I would like to change them and eliminate the problem. Any
>> suggestions would help.
>>
>> Thanks!
>> Ed

>



 
Reply With Quote
 
Ed Hawley
Guest
Posts: n/a
 
      23rd Jul 2007
Thanks Larry,

Interesting history of the Macro. Makes it seem that even if I do the
conversions, I may still get the errors from VBA

Thanks!
Ed
"Larry Daugherty" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> You can't get there from here....
>
> I believe that Access provides a converter that moves you along the
> way. I haven't written any Access Macros since it became available so
> your mileage may vary...
>
> The warnings you get really have to do with VBA code as much as any
> Access Macros. In all other platforms, VBA code is referenced as
> "macro".
>
> A piece of trivia: The original "macro" implementation was from
> Digital Equipment Corporation (DEC) in its PDP-11, and up, assembler
> languages. The software engineer could create the low level referents
> once, creating incredibly deep nested macros, and refer to them many
> times in the source code with a single line each time. The actual
> assembler (compiler) then inserted the entire source code into the
> object code each time it was called. A source file of just a few
> pages might generate a listing file several inches deep. I believe
> that every programming language that has claimed to be "macro" ever
> since then is trying to claim similar power and expandability. None
> has come even remotely close in exactly the same way.
>
> HTH
> --
> -Larry-
> --
>
> "Ed Hawley" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Is there a good way to convert macros to VB when you do not remember

> how to
>> program in VB. I am continually running into problems with the

> macros,
>> because of security issues, with the systems on which the database

> is run. I
>> would like to change them and eliminate the problem. Any suggestions

> would
>> help.
>>
>> Thanks!
>> Ed
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting macros =?Utf-8?B?Q2hhZA==?= Microsoft Word Document Management 3 6th Apr 2005 06:53 PM
Converting Macros DS Microsoft Access Form Coding 2 24th Nov 2004 05:30 AM
Macros or converting Lotus 123 Macros to Excel Bruce Microsoft Excel Misc 4 13th May 2004 10:49 PM
Converting Macros Warren Kraft Microsoft Excel Worksheet Functions 1 15th Dec 2003 07:25 PM
converting macros stephanie campbell Microsoft Access Macros 0 8th Sep 2003 03:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:51 AM.