Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2005

Tip: Looking for answers? Try searching our database.

Incrementing Variable shortcut

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
crazybass2 - 17 Mar 2005 23:20 GMT
In several languanges (C++ and Jave for eg.) there is a short cut method of
incrementing a variable by 1.  For instance in C++ if I have a variable var,
I can have var++ instead of var = var + 1.  

Is there something similar in VBA or do I have to write it out?  

I know, I know...I have issues with laziness, but is there a way?

Mike
Jim Thomlinson - 17 Mar 2005 23:20 GMT
I am with you... It would be nice... But alas it is not to be. There is no
increment operator in VB.

> In several languanges (C++ and Jave for eg.) there is a short cut method of
> incrementing a variable by 1.  For instance in C++ if I have a variable var,
[quoted text clipped - 5 lines]
>
> Mike
crazybass2 - 18 Mar 2005 16:31 GMT
Thanks for the reply.

> I am with you... It would be nice... But alas it is not to be. There is no
> increment operator in VB.
[quoted text clipped - 8 lines]
> >
> > Mike
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.