Macro Toolworks Products Discussion Forums :: FAQ's
Welcome Guest   
 Subject :Colored note code with date stamp.. 21-11-2010 16:24:32 
Joined: 23-05-2012 03:55:06
Posts: 0
Location
Hi,

What's the simplest way to generate a line like this:

AB-2010.11.21

but in a color so when I continue the text (in Outlook, Word, etc) the colour will remain?

I know how to generate the actual date, so the coloring is the question.

Coloring is not an issue if I use a clipboard macro but then I don't know how to have the actual date added. Two macros, first a clipboard macro and then the date code?

Thanks in advance
IP Logged
 Subject :Re:Colored note code with date stamp.. 22-11-2010 21:09:29 
petr
Joined: 15-10-2009 11:48:52
Posts: 152
Location
Hello,

yes, you are right, I think running two macros is the only option here. The most convenient seems to run clipboard macro (that actually inserts a dummy text in required colors) from macro that inserts required text using <run> command. Something like this (just pseudo code):

<cmd>
<run>("clipboard-cloro-macro") <#> inserts colored dummy text
<keys><shift><home><shift><#> Selects dummy text
AB-<date>(....)<#> Inserts date

Best regards,
Petr
IP Logged
 Subject :Re:Colored note code with date stamp.. 22-11-2010 23:06:31 
Joined: 23-05-2012 03:55:06
Posts: 0
Location
Thanks, Petr,

I give a try then as your suggests.
IP Logged
Page # 


Powered by ccBoard


Login and share your experience - send messages to forums and add comments to samples, commands and other resources.



Account is free of charge, easy to setup.