Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
merging
I want to merge two cells and that new cell to fill with "asdf". How could I do that? -- mpele ------------------------------------------------------------------------ mpele's Profile: http://www.excelforum.com/member.php...o&userid=31808 View this thread: http://www.excelforum.com/showthread...hreadid=520454 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
merging
Hi M,
I want to merge two cells and that new cell to fill with "asdf". How could I do that? Avoiding the temptation to respomd "Don't!", because there are all kinds of potential problems associated with the use of merged cells, try: '============= Public Sub Tester001() Dim rng As Range Set rng = Range("A1:B1") '<<==== CHANGE With Range("B14:C14") .ClearContents .Item(1).Value = "asdf" .HorizontalAlignment = xlCenter .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .ShrinkToFit = False .MergeCells = True End With End Sub '<<============ --- Regards, Norman "mpele" wrote in message ... I want to merge two cells and that new cell to fill with "asdf". How could I do that? -- mpele ------------------------------------------------------------------------ mpele's Profile: http://www.excelforum.com/member.php...o&userid=31808 View this thread: http://www.excelforum.com/showthread...hreadid=520454 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
merging
Hi M,
With Range("B14:C14") Should read: With rng --- Regards, Norman |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
merging
mpele,
Agreeing with Norman to avoid this unless you really have to, you could have recorded a macro of the actions and got the answer in all of 10 seconds. This is the best to start something that you are not sure of. From there, edit the code as necessary, adding variables, error checks, loops etc to enhance. Nick "mpele" wrote in message ... I want to merge two cells and that new cell to fill with "asdf". How could I do that? -- mpele ------------------------------------------------------------------------ mpele's Profile: http://www.excelforum.com/member.php...o&userid=31808 View this thread: http://www.excelforum.com/showthread...hreadid=520454 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
help on merging | Excel Discussion (Misc queries) | |||
Merging | Excel Discussion (Misc queries) | |||
Merging if | Excel Worksheet Functions | |||
When merging information not merging correctly | Excel Worksheet Functions | |||
Sorting, Merging, and Re-merging | Excel Worksheet Functions |