Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Incrementing Variable shortcut
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 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Incrementing Variable shortcut
I am with you... It would be nice... But alas it is not to be. There is no
increment operator in VB. "crazybass2" wrote: 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 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Incrementing Variable shortcut
Thanks for the reply.
"Jim Thomlinson" wrote: I am with you... It would be nice... But alas it is not to be. There is no increment operator in VB. "crazybass2" wrote: 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
shortcut has change or move so this shortcut can not open | Excel Worksheet Functions | |||
incrementing | Excel Discussion (Misc queries) | |||
Variable Incrementing | Excel Discussion (Misc queries) | |||
Next not incrementing | Excel Programming | |||
Increment variable not incrementing? | Excel Programming |