Hi John,
Are you creating your Public Function sub at the very end of the VB code in the VBA editor? I've just never understood where you go in and add the VB code to be referenced within your actions. Thanks! ------------------------------------------------ Heather Castillo HPMIN Applications Analyst Hays Medical Center 785.623.5084 office 785.623.5594 fax [email protected] <mailto:[email protected]> ________________________________ From: [email protected] [mailto:[email protected]] Sent: Wednesday, February 16, 2011 1:03 PM To: [email protected] Subject: RE: [talkbws] vb in rules based scripting What type of examples are you looking for Sarah? Here is an example for a file download. Step Print Destination Download Title/condition, etc. Actions: Key "@_clickoffsetx:12" key "@_click:Target" key "^{End}" key "{BS}" key GetFileName("Out") key "@_click:OK" Public Function GetFileName(pType As String) If Trim(LCase(pType)) = "out" Then GetFileName = "\\some path\some file name" & Format(Now, "MMDDYY") & ".txt" Else ' update GetFileName = "\\some path\some other file name" & Format(Now, "MMDDYY") & ".txt" End If End Function John Taylor Systems Analyst, Information Systems | Augusta Health Office: (540)332-4882 | www.augustahealth.com From: [email protected] [mailto:[email protected]] Sent: Wednesday, February 16, 2011 1:55 PM To: [email protected] Subject: [talkbws] vb in rules based scripting Hi, Would someone be willing to share a rules based script (preferably for Meditech C/S 5.6x) that incorporates visual basic in the script? Your help would be greatly appreciated! Sarah Koenigsman HPMIN Applications Analyst [email protected] 785.623.5023 --- To post a message to this list, send mail to: [email protected] You are currently subscribed as: [email protected] Unsubscribe in the customer center on our website: http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx --- To post a message to this list, send mail to: [email protected] You are currently subscribed as: [email protected] Unsubscribe in the customer center on our website: http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx --- To post a message to this list, send mail to: [email protected] You are currently subscribed as: [email protected] Unsubscribe in the customer center on our website: http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx
Important: This email and any attachments may contain confidential information subject to protection under the Federal Standards for Privacy of Individually Identifiable Health Information (45 C.F.R. Parts 160 and 164). If you or your organization is a “Covered Entity” under the above mentioned regulations, you are obligated to treat such information in a manner consistent with the regulations. If it appears that this email was sent to you in error, (1) you are prohibited from utilizing or disseminating this email or any attachments; (2) please immediately delete it from your computer and any servers or other locations where it might be stored, and email this sender or call the Hays Medical Center Privacy Officer at (785) 623-2188 advising that you have done so. We appreciate your cooperation.
