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 Excel » Links and Linking
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

VBA EXCEL CALENDAR



 
 
Thread Tools Display Modes
  #1  
Old February 15th, 2008, 03:12 PM posted to microsoft.public.excel.links
NAILL Finn
external usenet poster
 
Posts: 1
Default VBA EXCEL CALENDAR

I hope I can explain this properly

I have downloaded an excel multi-year calendar form the internet and I am in
the process of modifying for my work.

On a second worksheet I have boxes that require user input on various types
of annual leave. Using a CommandButton I would like to transfer that
inputted information and format the the calendar to incorporate this data by
colour coding cells.

Please help

Frances


  #2  
Old February 17th, 2008, 08:54 AM posted to microsoft.public.excel.links
Bill Manville
external usenet poster
 
Posts: 258
Default VBA EXCEL CALENDAR

You haven't told us enough about the layout of the calendar to be much
help.
I assume the main issue is identifying the correct cell to put the
information/colouring in.
I assume you will end up needing a row number, a column number and a
sheet name.
If, for example, the worksheets are named "Y2008" etc - one per year,
the rows represent months with January in row 2 and the columns
represent days with 1 in column 2, and you have a date in
a VBA variable dtWhen, the row number would be Month(dtWhen)+1 and the
column number would be Day(dtWhen)+1 so the cell you need to access
would be

Sheets("Y"&Year(dtWhen)).Cells(Month(dtWhen)+1, Day(dtWhen)+1)

If that doesn't give you enough to go on, you'll need to give us more
help, describing the layout of the sheet(s).

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - respond to newsgroup

 




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


All times are GMT +1. The time now is 11:57 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.