- or download this
Sub Macro1()
'
...
End With
Selection.Merge
End Sub
- or download this
use Win32::OLE qw(in with CP_UTF8);
Win32::OLE->Option(CP => CP_UTF8);
...
my $Sheet = $Book->Worksheets(1);
$Sheet->Range("B1:Q1")->Merge();
$Sheet->Range("B1:Q1")->{HorizontalAlignment} = 'xlCenter';
- or download this
Win32::OLE operating in debugging mode: _Unique => 1
OLE exception from "Microsoft Excel":
...
Win32::OLE(0.1709) error 0x80020009: "Exception occurred"
in PROPERTYPUT "HorizontalAlignment" at C:\Users\boss\Dropbox C:\t
+mp\merge-center.pl line 11.