markster
Well-known Member
- Joined
- May 23, 2002
- Messages
- 579
- Office Version
- 365
- Platform
- Windows
- MacOS
Hello - I wondered if anyone could help me with some macro report to convert a couple of aspects of a report into something I can work with. I’ve been trying to achieve what I want with formulas but it’s just not practicable due to the ever increasing lines of data that appears the report 60,000 plus (takes ages to open and formula calculation causes it to lag. As such it would be great if someone could provide me some macro code that I can run on the report to do the following:
Date & Time
There is a date & time In COLUMN B (B7 onwards) displayed like this 2021.05.10 01:00:01.
I need the macro to look at this column and put the date only in the DD-MMM-YY format into Column Q (from Q7 onwards) and then add the time into COLUMN R (R7 onwards) the thing with the time is that I want it to enter the time rounded down to the nearest hour - 2 hours (time difference) i.e. 13:07, 13:25, 13:45, 13:55 would show as 11:00 (actual time rounded down -2). 10:07, 10:45, 10:57 would be displayed as 08:00 (actual time rounded down-2)
Status
If COLUMN I (from I7) is populated I want it to add CLOSED to COLUMN P (from P7 onwards)
If COLUMN I (from I7) is blank I want it to add OPEN/ORDER to COLUMN P (from P7 onwards)
Thanks in advance and let me know if any clarification is needed.
Thanks
Mark
Date & Time
There is a date & time In COLUMN B (B7 onwards) displayed like this 2021.05.10 01:00:01.
I need the macro to look at this column and put the date only in the DD-MMM-YY format into Column Q (from Q7 onwards) and then add the time into COLUMN R (R7 onwards) the thing with the time is that I want it to enter the time rounded down to the nearest hour - 2 hours (time difference) i.e. 13:07, 13:25, 13:45, 13:55 would show as 11:00 (actual time rounded down -2). 10:07, 10:45, 10:57 would be displayed as 08:00 (actual time rounded down-2)
Status
If COLUMN I (from I7) is populated I want it to add CLOSED to COLUMN P (from P7 onwards)
If COLUMN I (from I7) is blank I want it to add OPEN/ORDER to COLUMN P (from P7 onwards)
Thanks in advance and let me know if any clarification is needed.
Thanks
Mark