VBA problem..

Sipsoo

New Member
Joined
Jul 12, 2006
Messages
19
Hi,

Getting really desperate and need some serious help.

I am busy trying to write a macro that will enable me to input a month and year i.e aug 2006, it then sets up the spreadsheet as follows..

Tue
Thur
Fri
Sun


Tue
Thur
Fri
Sun


Tue
Thur
Fri
Sun


Tue
Thur
Fri
Sun


Tue
Thur
Fri
Sun

What I am trying to do it is populate the cells next to the days with the date i.e.

Tue 5/09
Thur 7/09
Fri 8/09
Sun 10/09

Tue 12/09
Thur 14/09
Fri 15/09
Sun 17/09

etc.

Is this possible??

Best regards,

Ken
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
49,413
Office Version
  1. 365
Platform
  1. Windows
Sipsoo

Does it need to be a macro? Is this formula approach any use?

Post back if you have any interest in this but modifications are needed.

E3: =DATE(E2,E1+1,1)-1
Individual formula in B2:B4
Formula in B7 copied down to B10
B7:B10 block copied down to the other blocks.
 

Sipsoo

New Member
Joined
Jul 12, 2006
Messages
19
Hi,

Thanks for the formular but I would prefer a macro as the rest of my sheets are macro based.

Regards,

Ken
 

Forum statistics

Threads
1,136,309
Messages
5,674,998
Members
419,541
Latest member
freddyboots

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top