How do I find the total of  numbers say from 1 t0 10 in VBA using a loop? I am failing to understand the idea of I++ . Need help please?

2 Answers

Relevance
  • ?
    Lv 6
    2 months ago

    I only work with VBA in Excel. Apparently VBA.NET is different and allows something like

    i += 1, but not i++

    See the source below for a discussion by people who know more about this than I do.

    To answer your first question, I'd use:

    x = 0

    for i = 1 to 10

    x = x + i

    next i

  • Jim
    Lv 7
    2 months ago

    This might be better if posted in another group like:

        All Categories > Computers > InternetProgramming Design

    or another group

Still have questions? Get answers by asking now.