sharksandwich
New Member
- Joined
- Jan 4, 2010
- Messages
- 9
What works best? IsDate?
I am semi new to VBA and have only performed basics and I have something that has stumped me.
Description: This one has a bit of everything involved.
I need to write/modify a VBA macro that can paste special value depending on if the date matches. In otherwords on Sheet1 the user chooses the month by a dropdown menu by month. Sheet 2 has that month's data with sums. Sheet 3 is the month end data (with all 12 months across top rows) & we are trying to capture monthly data from sheet 2 and then paste special to get the value populated in the correct field by month. At the end of the month the client/user will run the macro to populate the info on the last sheet and begin next months data.
I have looked at "IsDate" then match, index functions and if statements but just can't put it all together.
Daily Census Sheet: contains the date drop down by month in A4
Purchases Sheet: COGS or cost of goods sold summed in E4 by way of VLookup.
Inventory Sheet: Contains header rows by date with COGS for each month which is being copied manually into D29, E29, F29 etc.
Will be happy to provide more info if needed. And... if it isn't clear, I will be happy to send spreadsheet.
It could be an ifelse, match, index, or indirect based from an IsDate statement. Just not able to get anything to do the trick.
Thanks in advance!
I am semi new to VBA and have only performed basics and I have something that has stumped me.
Description: This one has a bit of everything involved.
I need to write/modify a VBA macro that can paste special value depending on if the date matches. In otherwords on Sheet1 the user chooses the month by a dropdown menu by month. Sheet 2 has that month's data with sums. Sheet 3 is the month end data (with all 12 months across top rows) & we are trying to capture monthly data from sheet 2 and then paste special to get the value populated in the correct field by month. At the end of the month the client/user will run the macro to populate the info on the last sheet and begin next months data.
I have looked at "IsDate" then match, index functions and if statements but just can't put it all together.
Daily Census Sheet: contains the date drop down by month in A4
Purchases Sheet: COGS or cost of goods sold summed in E4 by way of VLookup.
Inventory Sheet: Contains header rows by date with COGS for each month which is being copied manually into D29, E29, F29 etc.
Will be happy to provide more info if needed. And... if it isn't clear, I will be happy to send spreadsheet.
It could be an ifelse, match, index, or indirect based from an IsDate statement. Just not able to get anything to do the trick.
Thanks in advance!