LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Incrementing a variable by 1

Apologies for the simple question, but I can't find the answer by
searching the net.

In PHP you can increment a variable by 1 thus:

$var++;

In some forms of BASIC it's:

var +=1

How do you incremenet a variable by 1 in VBA other than:

iVar = iVar + 1

Is there simpler way?

Thanks.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
incrementing luuthur Excel Discussion (Misc queries) 4 May 23rd 07 05:07 AM
Variable Incrementing John Excel Discussion (Misc queries) 3 May 12th 06 10:16 PM
Next not incrementing davegb Excel Programming 11 March 19th 05 01:25 PM
Incrementing Variable shortcut crazybass2 Excel Programming 2 March 18th 05 03:31 PM
Increment variable not incrementing? [email protected] Excel Programming 3 November 19th 04 12:10 AM


All times are GMT +1. The time now is 01:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"