[Solved] Dialog Box Field for Entering Cell Range

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
saleem145
Posts: 130
Joined: Mon Jul 02, 2012 4:47 pm

[Solved] Dialog Box Field for Entering Cell Range

Post by saleem145 »

Hello,

Is there is a Dialog Box field in the dialog box designer for entering a range of cells. I should be able to move the mouse and click on a spreadsheet cell and have it pick up the appropriate cell addresses??

Thanks,

Saleem
Last edited by Hagar Delest on Fri Aug 03, 2012 2:45 pm, edited 1 time in total.
Reason: tagged [Solved].
OpenOffice 3.4.0
Mac OS X 10.5.8
FJCC
Moderator
Posts: 9623
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Dialog Box Field for Entering Cell Range

Post by FJCC »

There is not a built in control for doing that, as far as I know, but here is an example I had stored of a standard command button that triggers a Range Selection macro. The code is not mine.
 Edit: If you are writing in Python, implementing the Range Selection Listener is somewhat different. The code in the attached file in in Basic. In Python you implement the Listener as a class. See this thread http://www.oooforum.org/forum/viewtopic.phtml?t=7748 
Attachments
RangeSelectionFromDialog.ods
(11.07 KiB) Downloaded 261 times
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
saleem145
Posts: 130
Joined: Mon Jul 02, 2012 4:47 pm

Re: Dialog Box Field for Entering Cell Range

Post by saleem145 »

This should be part of OpenOffice -- its a must have!! Thanks for your code!
OpenOffice 3.4.0
Mac OS X 10.5.8
Post Reply