Afternoon All.
New to VBA, teaching myself and what I'm trying to do has left me stumped - would be interedted to know how it can be achieved (if possible). All help is greatly appreciated!
I have 3 columns; a start date, an end date and an event. Now sometimes the start and end will be the same, i.e. the event lasts one day, sometimes it goes into a second or third day and so the start and end dates will differ.
The first part of my macro evaluates the dates and returns the start date and (if applicable) all dates up to and including the end date. This new list should be returned in column d.
The second part of my macro should then copy the 'event' to every returned value in column d into the corresponding cell in column e.
So, for example, if 'Camping Trip' started on the 1st and finished on the 3rd columns D & F would read:
1st January Camping Trip
2nd January Camping Trip
3rd January Camping Trip
I've managed to sort out the first part of the problem but having real difficulty incorporating a copy/paste function into the macro - is it even possible?
Again, I'm new to VBA so apologies if asking an obvious question, or if I have used incorrect terminology. Any comments, feedback and/or suggestions will be gratefully received.
mrbilly
New to VBA, teaching myself and what I'm trying to do has left me stumped - would be interedted to know how it can be achieved (if possible). All help is greatly appreciated!
I have 3 columns; a start date, an end date and an event. Now sometimes the start and end will be the same, i.e. the event lasts one day, sometimes it goes into a second or third day and so the start and end dates will differ.
The first part of my macro evaluates the dates and returns the start date and (if applicable) all dates up to and including the end date. This new list should be returned in column d.
The second part of my macro should then copy the 'event' to every returned value in column d into the corresponding cell in column e.
So, for example, if 'Camping Trip' started on the 1st and finished on the 3rd columns D & F would read:
1st January Camping Trip
2nd January Camping Trip
3rd January Camping Trip
I've managed to sort out the first part of the problem but having real difficulty incorporating a copy/paste function into the macro - is it even possible?
Again, I'm new to VBA so apologies if asking an obvious question, or if I have used incorrect terminology. Any comments, feedback and/or suggestions will be gratefully received.
mrbilly