Leon André Bergman
60 discussion posts
I am in the process of setting up macros that navigate between text boxes.
Most of them I can use the BFS.Clipboard.PasteText for, but I have 1 field that changes, and it's a date/time field.
So I decided to set up a pinned item in the #1 slot, with the date and time I want to use every time the macro is run.
So if the date changes, I just change the pinned item, not the macro.
I assumed I could use one of the BFS.ClipboardFusion statements to do this, but if I use BFS.ClipboardFusion.GetLocalPinnedText(1); my current clipboard item is not updated. When I try to paste, it just pastes what ever I had copied before I ran the macro.
How can I make this work?
Alternatively, is there a way where I can just get the date, and set it to say 4 days from now, and paste that?
Leon André Bergman
60 discussion posts
dd.mm.yy and if possible hh:mm:ss but not essential.
Leon André Bergman
60 discussion posts
Nice. This works. Thank you for your help.
No worries, glad we could help!
Leon André Bergman
60 discussion posts
Thanks again. This has been very helpfull. I want to make it skip weekends. Possibly holidays, I see some commands on stack overflow for AddBusinessDays, but that doesnt follow the syntax in use here. Is there a way to do it in the code you already made for me?
Leon André Bergman
60 discussion posts
Since it's friday, I've had a chance to try out your code, and I realized a limitation.
If I want to add 3 working days, it only adds 3 days, and sets monday, instead of seeing that its been a weekend, and adding another 2 days.