Search notes:

Excel: Fill a range fast with VBA

option explicit

sub main() ' {

  '
  ' Define a two dimensional array for
  ' 100 rows and 50 columns:
  '
    dim v(1 to 100, _
          1 to  50) as variant

    dim row_ as long
    dim col_ as long

  '
  ' Fill the array
  '
    for row_ = 1 to 100
    for col_ = 1 to  50
        v(row_, col_) =  35 +  (row_+3 mod 7) * (col_+4 mod 11)  mod 101
    next col_
    next row_

  '
  ' Assign the array to the range
  '
    range(cells(  2,  2),  _
          cells(101, 51))  = v

end sub ' }

See also

Same idea, but filling a range with PowerShell
Excel range

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Microsof...', 1759290531, '216.73.216.88', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Microsoft/Office/Excel/Object-Model/Range/value/fill-fast-with-VBA(67): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78