A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Need help with my word doc



 
 
Thread Tools Display Modes
  #1  
Old June 8th, 2005, 11:41 PM
Ana ana via OfficeKB.com
external usenet poster
 
Posts: n/a
Default Need help with my word doc

Hi,
I need help in my word doc :-( every time I add VB button to generate date
and time or just use clear button to clear some fields it will work for the
1st time but when I save the doc and exit and come back again all of my
buttons will NOT work? Any Idea on how I can keep it working?

Thx,
Ana
  #2  
Old June 9th, 2005, 02:45 PM
Charles Kenyon
external usenet poster
 
Posts: n/a
Default

Consider using fields in templates for your dates. If you need to use
macros, put them in the template (rather than normal.dot) and assign custom
toolbar custom buttons to the macros rather than ActiveX controls.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

"Ana ana via OfficeKB.com" wrote in message
...
Hi,
I need help in my word doc :-( every time I add VB button to generate date
and time or just use clear button to clear some fields it will work for
the
1st time but when I save the doc and exit and come back again all of my
buttons will NOT work? Any Idea on how I can keep it working?

Thx,
Ana



  #3  
Old June 10th, 2005, 08:44 PM
Ana ana via OfficeKB.com
external usenet poster
 
Posts: n/a
Default

Thank you Charles. I didn't use macro what i did is adding this code for
the buttons:
=========================================
Private Sub CommandButton1_Click()
Label1.Caption = Format(Now, "General Date")
End Sub

Private Sub CommandButton11_Click()

End Sub

Private Sub CommandButton2_Click()
Label1.Caption = " "

End Sub



Private Sub Label1_Click()

End Sub
=============================================

All works but after I close the doc and reopen it the code didn't work :-(

Thx for your help

--
Message posted via http://www.officekb.com
  #4  
Old June 10th, 2005, 11:30 PM
Charles Kenyon
external usenet poster
 
Posts: n/a
Default

These are (nonfunctional) macros. Code = macro. Your document will trigger
macro alerts or security.
Consider whether fields will meet your needs rather than command buttons.
See http://addbalance.com/word/datefields1.htm for information on the
different kinds of datefields and how to format them.

See http://addbalance.com/word/datefields2.htm for information on the
different kinds of ways to make a date calculation work. It includes links
to pages with fields and an explanation of different macros that can be used
instead of fields.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.



"Ana ana via OfficeKB.com" wrote in message
...
Thank you Charles. I didn't use macro what i did is adding this code for
the buttons:
=========================================
Private Sub CommandButton1_Click()
Label1.Caption = Format(Now, "General Date")
End Sub

Private Sub CommandButton11_Click()

End Sub

Private Sub CommandButton2_Click()
Label1.Caption = " "

End Sub



Private Sub Label1_Click()

End Sub
=============================================

All works but after I close the doc and reopen it the code didn't work :-(

Thx for your help

--
Message posted via http://www.officekb.com



  #5  
Old June 14th, 2005, 01:52 AM
Ana ana via OfficeKB.com
external usenet poster
 
Posts: n/a
Default

Thank you Charles, I am not that good with macro :-(... Do you know why VB
commands wont works after saving MS Word? Any fix or setting for me to do!
Thanks again for your help. :-)

Ana

--
Message posted via http://www.officekb.com
  #6  
Old June 14th, 2005, 04:35 PM
Charles Kenyon
external usenet poster
 
Posts: n/a
Default

Ana,

You are in over both of our heads. Again, look into using fields if you
don't understand vba. See http://addbalance.com/word/datefields2.htm for
information on the different kinds of ways to make a date calculation work.
It includes links to pages with fields and an explanation of different
macros that can be used instead of fields.

Your code may be being stored somewhere else and not saved when you save
your document.

--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

"Ana ana via OfficeKB.com" wrote in message
...
Thank you Charles, I am not that good with macro :-(... Do you know why VB
commands wont works after saving MS Word? Any fix or setting for me to do!
Thanks again for your help. :-)

Ana

--
Message posted via http://www.officekb.com



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please give us REVEAL CODES like WORD PERFECT not reveal codes in. Rachel King General Discussion 39 August 21st, 2009 09:54 PM
How do I keep two words together? LAD General Discussion 2 April 15th, 2005 12:25 AM
Continuous breaks convert to next page breaks Jennifer Hunt General Discussion 2 December 30th, 2004 05:45 PM
updating fields lost in cincy Mailmerge 5 November 18th, 2004 07:17 PM
Codes G.W. Page Layout 3 April 29th, 2004 10:50 PM


All times are GMT +1. The time now is 12:10 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.