Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I have an Access application that is programmatically populating an Excel spreadsheet via OLE (i.e. dim objXL as Excel.Application, set objXl=CreateObject("excel.application") etc etc) The application opens an existing xls file and then does a SaveAs so the target is saved with a name reflecting it's contents e.g. template=ApplicationTemplate.xls and the SaveAs destination is Application123456.xls meaning data for application 123456 is contained within it When I go to populate a cell via something like a "MyRange.Cells(a,b).Value = MyValue", the resulting spreadsheet has the value OK but if that cell happened to have the "MergeCells" property set i.e. it was merged with the 4 adjacent columns then this property has been lost and I'm back to a single cell... Is there a way I can programaticaly detect the merge cells properties and then restore them or alternatively can I use the clipboard and do a PasteSpecial for just the values in some way? Any help or advice is appreciated Cheers -- Cardio ------------------------------------------------------------------------ Cardio's Profile: http://www.excelforum.com/member.php...o&userid=28976 View this thread: http://www.excelforum.com/showthread...hreadid=487076 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
"Center across selection" rather than "Merge cells" | Excel Discussion (Misc queries) | |||
is it possible to "merge" multiple worksheets into one worksheet? | Excel Discussion (Misc queries) | |||
Can you merge cells in a "list"? | Excel Worksheet Functions | |||
merge cells marco "help" | Excel Programming | |||
merge cells marco "help" | Excel Programming |