Search notes:

Excel Object Model: range.resize

option explicit

sub main()

   dim rng as range

   set rng = range("b3")

 '
 ' Resize range to five rows and
 ' four columns columns:
 '
   set rng = rng.resize(5, 4)

 '
 ' Color the range in orange:
 '
   rng.interior.color = rgb(255, 127, 0)

 '
 ' Create another range based on the
 ' existing one. Apparently, it uses
 ' the one by one top left cell for the resize
 '
   set rng = rng.resize(3, 2)

 '
 ' Color the «new» range in blue:
 '
   rng.interior.color = rgb(0, 45, 200)

end sub
Github repository about-MS-Office-object-model, path: /Excel/Range/resize.vb

See also

range.offset
Moving ranges around
The function excelRangeResize of the VBA module excelRange.
The range object

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...', 1758201059, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Microsoft/Office/Excel/Object-Model/Range/resize(81): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78