Sure,
The function is simply "Time", but it comes in a specific format. You can use the format function, to specify the format the time returns for example:
dim CTime as string
CTime = format(time, "h:mm:ss")
if CTime = "22:25:00" then
msgbox "it's 10:25pm"
end if
If you research the format and time function, you can have it set for 24 hour time, or 12 hour time, and you can specify how many digits per part of the time. Then just compare and execute :) Keep in mind, however, that you would want to put this in a timer control, and set the interval to either 1 second or 100Milliseconds (I use 100ms, but every second would work just as well), the timer control's interval property works in Milliseconds, so 1 second would be 1000ms. Also, remember to disable the timer, or set a flag variable after the time hits, and the program runs the commands, otherwise, it will continue to run those commands over and over again until the time is no longer (in this case) 22:25:00. Let me know how it turns out.