Search notes:

Excel Object Model: Range.Merge

option explicit

sub main() ' {

    with activeSheet.cells(2,2)

        .resize(1,3).merge

        .value               ="hello world"
        .horizontalAlignment = xlCenter
        .font.bold           = true
        .interior.themeColor = xlThemeColorAccent6
    end with

end sub ' }

See also

Home -> Alignment -> Merge & Center -> Merge Cells
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...', 1759290422, '216.73.216.88', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Microsoft/Office/Excel/Object-Model/Range/merge/index(52): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78