AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

VBA vs Autohotkey for M$ Office Automation?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Thu Apr 24, 2008 8:16 pm    Post subject: VBA vs Autohotkey for M$ Office Automation? Reply with quote

i've been very satisfied with AHK so far.
i'm thinking of learning integrated scripting engine in Office called VBA
which is originally from the Visual Basic, unfortunately i don't know Visual Basic.
so i need to learn from the start line. but i can play with AHK at this moment.
does VBA real good for automating M$ Office applications? (especially excel)
can't AHK be alternative for VBA?
if AHK could be alternative for VBA. i won't learn it. cause M$ dropped Visual Basic.
if i should learn Visual Basic, i would pick up VS.NET (have no compatibility with VBA)
please tell me your experience.
Thanks.

even ahk is worse than VBA for using with MS office applications
i won't drop ahk. ahk for life Smile
Back to top
TheIrishThug



Joined: 19 Mar 2006
Posts: 347

PostPosted: Thu Apr 24, 2008 8:24 pm    Post subject: Reply with quote

I vote you take the plunge and go VBA. Things will be easier once you get the syntax down and getting a decent handle on that shouldn't take all that long.
Back to top
View user's profile Send private message Visit poster's website AIM Address
Guest






PostPosted: Thu Apr 24, 2008 8:31 pm    Post subject: Reply with quote

TheIrishThug wrote:
I vote you take the plunge and go VBA. Things will be easier once you get the syntax down and getting a decent handle on that shouldn't take all that long.


Thanks for answer.
can i add one more question?
how's the difficuly of VBA comparing to AHK?
when i learning AHK first time. it's extremely easy for non-programmer
how about VBA? can it be done as quickly as AHK does?
Back to top
neXt



Joined: 19 Mar 2007
Posts: 367

PostPosted: Fri Apr 25, 2008 1:57 am    Post subject: Reply with quote

Nothing too hard, if AHK is your first language, then you might get a bit confused with variable declarations and types, but after that it's a piece of cake. Object model is really easy in excel and if you are stuck you can visit VBAExpress forums, they are really great at helping nOobs. Have fun.
Back to top
View user's profile Send private message
poetbox



Joined: 07 Jan 2007
Posts: 50

PostPosted: Fri Apr 25, 2008 3:53 am    Post subject: Re: VBA vs Autohotkey for M$ Office Automation? Reply with quote

Anonymous wrote:
i've been very satisfied with AHK so far.
i'm thinking of learning integrated scripting engine in Office called VBA
which is originally from the Visual Basic, unfortunately i don't know Visual Basic.
so i need to learn from the start line. but i can play with AHK at this moment.
does VBA real good for automating M$ Office applications? (especially excel)
can't AHK be alternative for VBA?
if AHK could be alternative for VBA. i won't learn it. cause M$ dropped Visual Basic.
if i should learn Visual Basic, i would pick up VS.NET (have no compatibility with VBA)
please tell me your experience.
Thanks.

even ahk is worse than VBA for using with MS office applications
i won't drop ahk. ahk for life Smile

To use AHK dealing with MS Office,you should learn VBA first.
Back to top
View user's profile Send private message
poetbox



Joined: 07 Jan 2007
Posts: 50

PostPosted: Fri Apr 25, 2008 4:02 am    Post subject: Reply with quote

Anonymous wrote:
TheIrishThug wrote:
I vote you take the plunge and go VBA. Things will be easier once you get the syntax down and getting a decent handle on that shouldn't take all that long.


Thanks for answer.
can i add one more question?
how's the difficuly of VBA comparing to AHK?
when i learning AHK first time. it's extremely easy for non-programmer
how about VBA? can it be done as quickly as AHK does?

can it be done as quickly as AHK does?
YES,It does.Maybe more quick than AHK does.
But only in MS OFFICE.
If you do any other things beyond Ms-OFFICE,then it's useless.While AHK can be used anywhere.
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6702
Location: France (near Paris)

PostPosted: Fri Apr 25, 2008 4:48 pm    Post subject: Reply with quote

poetbox wrote:
YES,It does.Maybe more quick than AHK does.
But only in MS OFFICE.
If you do any other things beyond Ms-OFFICE,then it's useless.While AHK can be used anywhere.

Not exactly. Microsoft released the VBA programming kit, and some other software used this language.
First name coming to mind is Corel Draw.
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
poetbox



Joined: 07 Jan 2007
Posts: 50

PostPosted: Sat Apr 26, 2008 6:23 am    Post subject: Reply with quote

PhiLho wrote:
poetbox wrote:
YES,It does.Maybe more quick than AHK does.
But only in MS OFFICE.
If you do any other things beyond Ms-OFFICE,then it's useless.While AHK can be used anywhere.

Not exactly. Microsoft released the VBA programming kit, and some other software used this language.
First name coming to mind is Corel Draw.
Laughing :wink:Thank you,nothing is impossible to programer. Laughing
Back to top
View user's profile Send private message
edu



Joined: 12 Oct 2006
Posts: 86
Location: Canada

PostPosted: Sat Apr 26, 2008 7:45 pm    Post subject: Reply with quote

I have faced this same question for myself, and here is my opinions:
- Yes, it is better to learn VBA if you're more serious about automating MS Office and even making some money from such experience.
- I haven't had time to learn much about programming and it seems to me, from gathering info from different sources, Visual Basic is not rated as a super or ideal language to learn.
- Due to my little time to dedicate myself into learning any programing language, I have stuck with Autohotkey. And have been very happy in automating some repetitive task in MS Office, sparing me so many clicks and keypresses, mostly.
- I know that with JScript and VBScript -- both scripting languages for general purposes in automating Windows -- one can do quite a bit impressive stuff. And I remember posts about how to insert VBScript codes into AHK, and get the most of both. These scripting languages can really do a lot for the MS Office.
- My tendency, trying my common sense, would be to lean toward, JScript, which is a Javascript variation. So once you get used to that kind of syntax, which is closer to AHK than Visual Basic, it could also open up your mind to catching up on Javascript and Web programming.
- I have this goal of someday, gradually, learning python, which is a much more complete programming language than AHK, and which has had lots of praises about easiness to learn, productivity, etc. And yes, it can automate MS Office much easier than AHK.
Last, but not least. I'm very happy that AHK has helped me to overcome that fear that programming is not for me.

I hope this helps
_________________
The best things of life are free.
Back to top
View user's profile Send private message
Guest






PostPosted: Sun Apr 27, 2008 1:15 pm    Post subject: Reply with quote

Thanks for kindly answers

it's why i like this community as much as i like ahk.
all your answers were very helpful to me. especially edu.
thanks for sharing your knowledge, information, experience.
much appreciated.

and yes, ahk helped me to beat my prolonged fear of programming.
i failed on almost of programming languages. even on python.
but not for ahk
Back to top
Guest






PostPosted: Sat May 03, 2008 9:54 pm    Post subject: Reply with quote

how about this

AutoHotkey+COM vs VBA?

though autohotkey can work with COM

is VBA still gets the winner position?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group