Fill Chess Board Matrix To Power Of 2

  • i would like to write vba to fill a "chess Board" Matrix (8X8) With Powers Of 2...


    starting with 2^0 and ending with 2^63...


    (i suppose, click a button/icon and have the numbers fill in/populate...)


    ???


    thank you...

  • Re: Fill "chess Board" Matrix With Powers Of 2...


    This should do it

    Code
    Range("A1:H8").FormulaR1C1 = "=2^(8*(ROW()-1)+COLUMN()-1)"


    this is a fun one:

    Code
    Dim runningSum As Double
    Dim aCell As Range
    
    
    runningSum = 0
    For Each aCell In Range("a11:h18")
        aCell = runningSum + 1
        runningSum = runningSum + aCell
    Next aCell
  • Re: Fill "chess Board" Matrix With Powers Of 2...


    Here's some code to play with...


Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!