| View previous topic :: View next topic |
| Author |
Message |
sombindas General User

Joined: 23 Jan 2012 Posts: 11
|
Posted: Thu Mar 01, 2012 7:55 pm Post subject: [Solved] Open calc from a particular sheet showing a dialog |
|
|
I want to open a worksheet from a particular sheet and range. No matter where I saved it previously. I also want to show an user form at the time of opening the same. Is it possible?
Last edited by sombindas on Fri Mar 09, 2012 6:02 am; edited 1 time in total |
|
| Back to top |
|
 |
mgroenescheij Super User

Joined: 20 Apr 2011 Posts: 862 Location: Australia
|
Posted: Sun Mar 04, 2012 2:18 am Post subject: |
|
|
Hi,
| Quote: | | I want to open a worksheet from a particular sheet and range. | OpenOffice remembers the view when you closed the the file.
| Quote: | | No matter where I saved it previously. | If you have moved the file to an other directory after the save OpenOffice can't know where the file is located.
Martin _________________ If your problem has been solved please add "[Solved]" to the beginning of your first post title (edit button). |
|
| Back to top |
|
 |
sombindas General User

Joined: 23 Jan 2012 Posts: 11
|
Posted: Sun Mar 04, 2012 3:01 am Post subject: |
|
|
| Thanks for providing your valuable time Martin. Let me clear you my quarry. I want to open worksheet always from sheet 1 range A1: D6 though I closed it previously from another sheet. I also want to show an user form while opening the same. As all the above are possible in Ms Excel, I think its possible too in Ooo. |
|
| Back to top |
|
 |
mgroenescheij Super User

Joined: 20 Apr 2011 Posts: 862 Location: Australia
|
Posted: Sun Mar 04, 2012 3:31 am Post subject: |
|
|
Hi,
As said OpenOffice remembers the view when you close the document, as far as I know there are no settings/options to change the behavior.
I have no idea what kind of form there should be opened, you need to give more information on what kind of form and how that form is created.
And don't expect that OpenOffice is an copy of MS Office it's a different beast.
Martin _________________ If your problem has been solved please add "[Solved]" to the beginning of your first post title (edit button). |
|
| Back to top |
|
 |
sombindas General User

Joined: 23 Jan 2012 Posts: 11
|
Posted: Sun Mar 04, 2012 5:12 am Post subject: |
|
|
| Thanks for your quick reply Martin. Glad to see you so honest to admit that you dont know how to change the default behave. Actually I have an index in sheet 1 which I always wanna show on opening. Its possible in excel and you may have a look at the link below and you may have a look at the user form under "Open Office Basic macro organizer", "Dialogs" http://www.vbaexpress.com/kb/getarticle.php?kb_id=338. |
|
| Back to top |
|
 |
pitonyak Administrator


Joined: 09 Mar 2004 Posts: 3618 Location: Columbus, Ohio, USA
|
Posted: Sun Mar 04, 2012 6:12 am Post subject: |
|
|
To my knowledge, Calc does not use different names for a sheet... In other words, it does not have an internal "code name" and an external "user name". You could test this theory of mine by loading an Excel document into Calc, changing the name of the sheet in question, and then saving it as an Excel sheet. Then, see if the Excel macro continues to function.
Attempting to insert embedded XML user attributes into the sheet might be a partial solution, then you would need to either embed the macros that handled that into OOo or each document of interest. If you did embed user attributes, you would need to architect your solution to insert them at an appropriate time. _________________ --
Andrew Pitonyak
http://www.pitonyak.org/oo.php |
|
| Back to top |
|
 |
sombindas General User

Joined: 23 Jan 2012 Posts: 11
|
Posted: Sun Mar 04, 2012 8:11 pm Post subject: |
|
|
| Thanks for your kind reply Sir Andrew Pitonyak. As you said, I opened an excel file in Ooo and found that the existing macros not working. Actually I want a simple solution of my quarry as the same is possible in excel through some code. Please forgive me if my quarry is idiotic. |
|
| Back to top |
|
 |
sombindas General User

Joined: 23 Jan 2012 Posts: 11
|
Posted: Sun Mar 04, 2012 8:32 pm Post subject: |
|
|
| For further reference I would like to share this document in excel created by me which always open from a particular sheet showing an user form. |
|
| Back to top |
|
 |
sombindas General User

Joined: 23 Jan 2012 Posts: 11
|
Posted: Sun Mar 04, 2012 8:37 pm Post subject: |
|
|
| For further reference I would like to share this document in excel created by me which always open from a particular sheet showing an user form. http://www.askwb.com/download/file.php?id=272 |
|
| Back to top |
|
 |
pitonyak Administrator


Joined: 09 Mar 2004 Posts: 3618 Location: Columbus, Ohio, USA
|
Posted: Sun Mar 04, 2012 9:36 pm Post subject: |
|
|
| sombindas wrote: | | Thanks for your kind reply Sir Andrew Pitonyak. As you said, I opened an excel file in Ooo and found that the existing macros not working. Actually I want a simple solution of my quarry as the same is possible in excel through some code. Please forgive me if my quarry is idiotic. |
I am saying that I expect that if you open the file in OOo, save the file from OOo, and then try to open the file in Excel, I expect that your macro will fail in Excel. I did not think that Calc supported the "CodeName" property.... I ran a test with OOo 3.3.0 and it looks like it does.
| Code: | STRING AbsoluteName = $Foo1.$A$1:$AMJ$1048576
...
STRING CodeName = Sheet1
...
|
OK, so it looks like you can modify the macro to do as you desire. Just enumerate all sheets and look for the sheet named Sheet1. Sadly I don't have time to do the translation at the moment, but I did verify that the required properties are present to translate the macro. _________________ --
Andrew Pitonyak
http://www.pitonyak.org/oo.php |
|
| Back to top |
|
 |
sombindas General User

Joined: 23 Jan 2012 Posts: 11
|
Posted: Thu Mar 08, 2012 10:49 pm Post subject: |
|
|
Thanks again for your reply Sir Andrew Pitonyak. As we know, necessity is the mother of invention, I tried to learn the matter and found my solution and now its working great. Actually, it will be very helpful if anybody always wants to open an index in a spreadsheet having lotsa sheets. Here is the link http://user.services.openoffice.org/en/forum/viewtopic.php?f=25&t=48484&p=222906#p222906
Last edited by sombindas on Fri Mar 09, 2012 5:54 am; edited 1 time in total |
|
| Back to top |
|
 |
pitonyak Administrator


Joined: 09 Mar 2004 Posts: 3618 Location: Columbus, Ohio, USA
|
|
| Back to top |
|
 |
sombindas General User

Joined: 23 Jan 2012 Posts: 11
|
Posted: Fri Mar 09, 2012 5:55 am Post subject: |
|
|
| Thanks your your encouragement Sir. Many things to learn from you. |
|
| Back to top |
|
 |
|