Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What is the easiest way to code a Boolean UDF that, given a range as input,
will return TRUE if any cell in that range is merged and FALSE otherwise? -- Gary's Student |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Try this: =isMerge(A1:H1) in required cell Function IsMerge(inRng) For Each cell In inRng If cell.MergeCells Then IsMerge = True Exit Function End If Next cell IsMerge = False End Function "Gary''s Student" wrote: What is the easiest way to code a Boolean UDF that, given a range as input, will return TRUE if any cell in that range is merged and FALSE otherwise? -- Gary's Student |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks a lot. I now have a better test for "sortability"
-- Gary's Student "Toppers" wrote: Hi, Try this: =isMerge(A1:H1) in required cell Function IsMerge(inRng) For Each cell In inRng If cell.MergeCells Then IsMerge = True Exit Function End If Next cell IsMerge = False End Function "Gary''s Student" wrote: What is the easiest way to code a Boolean UDF that, given a range as input, will return TRUE if any cell in that range is merged and FALSE otherwise? -- Gary's Student |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
merge two excel files like in word mail merge | Excel Discussion (Misc queries) | |||
Calculate mean of test scores from rows of test answers | Excel Discussion (Misc queries) | |||
mail merge excludes my headers and critical data in Word merge | Excel Discussion (Misc queries) | |||
Merge =( formula should retain fraction type numbers after merge. | Excel Worksheet Functions | |||
how do i get my mail merge to update the data source at each merge | Excel Discussion (Misc queries) |