Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Calender Help

I want a upcomings event diary to show me what is coming up in the next
month, It will not allow anymore than 2 weeks. Is there any way to change
this

Also in the listbox on the userform it show the date time and event in 3
columns how do I get the 1st column to show the date in the dd mm yyyy
format

Thanks again

Greg

Private Sub UserForm_Initialize()
Do Until Sheet1.Range("a2").Offset(counter).Value Now + 14
counter = counter + 1
Loop
UserForm1.ListBox1.ColumnCount = 3
UserForm1.ListBox1.List() = Sheet1.Range(Cells(2, 1), Cells(counter,
3)).Value
End Sub





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Calender Help

Wherever the date is inserted, use

Format(Date, "dd mm yyyy")

rather than just Date.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Greg B..." wrote in message
...
I want a upcomings event diary to show me what is coming up in the next
month, It will not allow anymore than 2 weeks. Is there any way to

change
this

Also in the listbox on the userform it show the date time and event in 3
columns how do I get the 1st column to show the date in the dd mm yyyy
format

Thanks again

Greg

Private Sub UserForm_Initialize()
Do Until Sheet1.Range("a2").Offset(counter).Value Now + 14
counter = counter + 1
Loop
UserForm1.ListBox1.ColumnCount = 3
UserForm1.ListBox1.List() = Sheet1.Range(Cells(2, 1), Cells(counter,
3)).Value
End Sub







  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Calender Help

It does not work, I tried that already.

Thanks

Greg


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Calender Help

So show us what you are doing in the code.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Greg B..." wrote in message
...
It does not work, I tried that already.

Thanks

Greg




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Calender Help

Private Sub UserForm_Initialize()
Do Until Sheet1.Range("a2").Offset(counter).Value Now + 14
counter = counter + 1
Loop
UserForm1.ListBox1.ColumnCount = 3
UserForm1.ListBox1.List() = Sheet1.Range(Cells(2, 1), Cells(counter,
3)).Value
End Sub


Thank you Bob

Greg




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Calender Help

Greg,

I assume that you are referring to the Listbox contents. Make sure the
worksheet cells are formatted in the date format of choice, and use

I have tried it and I don't get the problem. The dates load as format
dd/mm/yyyy for me.
--

HTH

RP
(remove nothere from the email address if mailing direct)


"Greg B..." wrote in message
...
Private Sub UserForm_Initialize()
Do Until Sheet1.Range("a2").Offset(counter).Value Now + 14
counter = counter + 1
Loop
UserForm1.ListBox1.ColumnCount = 3
UserForm1.ListBox1.List() = Sheet1.Range(Cells(2, 1), Cells(counter,
3)).Value
End Sub


Thank you Bob

Greg




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
calender Fareez Excel Worksheet Functions 4 November 28th 09 05:29 PM
Calender chefmike Excel Discussion (Misc queries) 2 April 19th 09 01:30 AM
pop up calender samy Excel Discussion (Misc queries) 0 June 25th 08 12:59 PM
CALENDER smickParisTX Excel Discussion (Misc queries) 0 January 19th 06 06:19 PM
Calender Help Alexanderj Excel Worksheet Functions 3 November 10th 05 02:10 PM


All times are GMT +1. The time now is 02:45 AM.

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

About Us

"It's about Microsoft Excel"