OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Calc: Macro and AutoFilter (again)

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
HansMaulwurf
Newbie
Newbie


Joined: 24 Apr 2012
Posts: 1

PostPosted: Tue Apr 24, 2012 1:10 am    Post subject: Calc: Macro and AutoFilter (again) Reply with quote

Hallo Smile

for a few days now, I try to set the AutoFilter by my macro. I want it exactly the way, OOo does it, if you choose it manual.

Code:
    oRange = oWorkingSheet.getCellRangeByPosition(0, 0, iiSpalten, iiZeilen).getRangeAddress()
    oVorlage.DatabaseRanges.addNewByName( "myRange", oRange )
    oVorlage.DatabaseRanges.getByName("myRange").AutoFilter=true
    oVorlage.DatabaseRanges.removeByName("myRange")



It sets AutoFilter correctly, but the dropdown-menus in the first rows are empty (ok, there are the standard-entries). I don't know what to do with FilterDescriptor or anything else, to fill these dropdown-menus. Someone can help me?

thanks

Hans
Back to top
View user's profile Send private message
probe1
Moderator
Moderator


Joined: 18 Aug 2004
Posts: 2560
Location: Chonburi Thailand Asia

PostPosted: Thu Apr 26, 2012 7:20 pm    Post subject: Reply with quote

Moderation probe1: cross-posting without reference is rude

Already answered in the German forum
http://de.openoffice.info/viewtopic.php?f=18&t=53171
_________________
Cheers
Winfried
My Macros
DateTime2 extension: insert date, time or timestamp, formatted to your needs
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group