
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
SYSTEM FUNCTION
I need a function that return me how many fields are selected in the current selection now
is it possible?
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
AFAIK there is no such system function. However, you can achieve that using some expression as I suggested here : Count of Current Selections

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you looking for this:
=getcurrentselections ( chr(13)&chr(10) , ' = ' )

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
AFAIK there is no such system function. However, you can achieve that using some expression as I suggested here : Count of Current Selections

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
with this Expression (based on Thirumalas solution) you get the number fo selected fields
=substringcount(getcurrentselections ( chr(13)&chr(10) , ' = ' ) ,'=')

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You can use this macro.
Sub Test
set cs = ActiveDocument.GetSheetObject("CS01")
msgbox(cs.GetNoOfRows)
End Sub
Regards,
Kaushik Solanki
