More context, please. Is $ws a worksheet? If so, I'm wondering how this works -- I don't see a TextBoxes object in the Worksheet or Worksheets object (in the Object Browser).
If you can get a handle to a Range object, though, there is an Unmerge function available to break up grouped cells. You can see this yourself by looking at the Object Browser -- press Alt-F11 in Excel to bring up the VB editor, then F2 to get the Object Browser. Then I usually restrict the search to Excel only (change where it says "all libraries" to "Excel").
Edit to add: Note that it's very possible that the TextBoxes item is just not part of the version of Excel I have available to me at work (Excel 2000).
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
Outside of code tags, you may need to use entities for some characters:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||