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

date button

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


Joined: 29 Sep 2010
Posts: 2

PostPosted: Wed Sep 29, 2010 1:46 am    Post subject: date button Reply with quote

I need a button to put the current date into a cell when pressed. I can do it on excel but I'm getting something wrong here. Can anyone help?
Back to top
View user's profile Send private message
RPG
Super User
Super User


Joined: 24 Apr 2008
Posts: 2697
Location: Apeldoorn, Netherland

PostPosted: Wed Sep 29, 2010 2:11 am    Post subject: Reply with quote

Hello

Maybe this link can help you.
Read that post and search a method what can working for you.

Romke
Back to top
View user's profile Send private message
dementedleach
Newbie
Newbie


Joined: 29 Sep 2010
Posts: 2

PostPosted: Wed Sep 29, 2010 6:53 am    Post subject: Reply with quote

I don't see how that would help. Not even sure what it does.
My original macro,in excel, was:

Private Sub CommandButton1_Click()
Sheets("Sheet2").Range("D4") = Date

I just want that to work in openoffice.
Back to top
View user's profile Send private message
RPG
Super User
Super User


Joined: 24 Apr 2008
Posts: 2697
Location: Apeldoorn, Netherland

PostPosted: Wed Sep 29, 2010 8:56 am    Post subject: Reply with quote

Hello

I think you start on the wrong forum.

It is a calc question and not as I did suppose a base question.

I think you can do it with
menu --> Data --> validity

When you see a popup click on the help button in that popup and then study the help file.

Romke
Back to top
View user's profile Send private message
Villeroy
Super User
Super User


Joined: 04 Oct 2004
Posts: 10106
Location: Germany

PostPosted: Wed Sep 29, 2010 2:04 pm    Post subject: Reply with quote

Easiest solution with a little setup and 5 key strokes:
Insert>Names>Define...
Name: N (or any other convenient letter)
Refers to: NOW()
[Add]
[OK]

In the cell you type:
=N [F9 key] Enter Enter

Lots of macros to put time stamps into the active cell, named cells, first column, next column:
[Calc,Python,Basic,Base] Several ways to time stamps
_________________
Rest in peace, oooforum.org
Get help on https://forum.openoffice.org
Back to top
View user's profile Send private message
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