View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Chip Pearson Chip Pearson is offline
external usenet poster
 
Posts: 7,247
Default What does "\" do in VBA

It means integer divide. It disregards any fractional part of the
result. E.g.,

8 \ 3 = 2


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com





"Jeff" wrote in message
...
Hello,

I hope this is not a silly question.

I was researching someones elses VBA project & noticed this
line of code:

row_d = a + (currentIndex - 1) \ 10 + currentIndex - 1

I know the "/" means divide by but what does the "\" do in this
above
equation, it doesn't mean divide as I tried that.


Any help would be greatly appreciated.

Thank you,
Jeff