Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old December 22nd, 2004, 08:13 AM
Registered User
Join Date: Dec 2004
Location: Slough, Berkshire, United Kingdom.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default DATE within txt box

I would like to know how to automatically update a .txt box without having to do the code manually every month such as .txt_month_value = "MARCH".

Could someone let me know



Reply With Quote
  #2 (permalink)  
Old December 22nd, 2004, 11:36 AM
Friend of Wrox
Join Date: Jun 2003
Location: , , Denmark.
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts

Try this:

Private Sub Workbook_Open()
  Dim i
  i = Month(Now)
  Application.Sheets("Sheet1").TextBox1.Text = Format(Month(i), "mmmm")
End Sub
Reply With Quote

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing date field in a large txt file CongoGrey Access 2 July 10th, 2007 06:44 AM
Date Conversion from txt field darrenb Access VBA 2 April 6th, 2007 07:04 AM
preserving txt box format when INSERTing pete_m ASP.NET 1.0 and 1.1 Basics 1 December 2nd, 2004 10:49 AM
Haw to convert txt date to 8/11/2004 Deputy Dog C# 1 September 1st, 2004 07:54 PM
Getting a search txt box to work JJ Access VBA 4 October 23rd, 2003 10:19 AM

All times are GMT -4. The time now is 07:18 PM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.