help with Dates in VBA

divuraj

Board Regular
Joined
Sep 28, 2006
Messages
75
Hi,

In sheet 2 of my work book in a4 :p4 range , I have all the months ( not necessarily in the order) in 7/6/2007 format . i have values in sheet1 for a month and the month again is on cell G6 in 7/6/2007 format and i have values in G12:G17.

now i need to check the month in sheet1 and for the same month in sheet 2 , i need to copy values from G12:G17 from sheet 1 and paste them in K6:K11 in sheet 2.

i tried using For each statement and also input box from the user which would ask from teh user the month like "Dec-07" but it is not working.

Please help.

regards,
divs
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,214,827
Messages
6,121,817
Members
449,049
Latest member
cybersurfer5000

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
Back
Top