Copying the QuoteWerks QuoteValet URL to the Windows clipboard

The script below provides a way to quickly and easily copy the QuoteValet document URL for the current open document in QuoteWerks to the Windows clipboard. This can then be pasted into an email or other document to send to your customer.

To implement the script, we suggest copy/pasting the below code into a text file and saving the file as “GetQVURL.vbs” in the “Applets” folder of the QuoteWerks directory on your PC or server. (If the “Applets” folder does not exist, then create it.) You can then create a custom menu option using the features in the QuoteWerks Tools menu | Customize Menus screen. Your new menu option should look something like the image below with Command text “&SYS_InstallPath\Applets\GetQVURL.vbs”:

QuoteWerks Get QuoteValet URL menu option

Dim objQWApp 'As Object
Dim strURL 'As String

Dim objShell 'As Object
Dim objExec 'As Object
Dim objIn 'As Object

Set objQWApp = GetObject(, "QuoteWerks.Application")
strURL = objQWApp.GetMacro("&DH_&QuoteValetCustomerFacingURL")
'strURL = strURL & "&internal=1" 'appending this parameter to the URL also will mean it does not trigger a QuoteValet Activity Log entry

Set objShell = CreateObject("WScript.Shell")
Set objExec = objShell.Exec("clip")
Set objIn = objExec.stdIn

objIn.WriteLine strURL
objIn.Close

MsgBox "The QuoteValet Customer Facing URL has been copied to the clipboard", 64, "QuoteWerks Add-On from Hilltops IT" '0 = OK Only, 64 = Information, 0 = Application Modal

Related Stories

See all

User is already logged into QuoteWerks message

Jun 18, 2015

This is a fairly rare issue when working with newer versions of QuoteWerks, but it can be very frustrating when it does occur! The issue may occur if a User’s system crashed or they switched off their PC without first logging out of QuoteWerks and requires you to manually delete the “.lck” file associated with […]

READ MORE

QuoteWerks F2 lookup and double click does not work

May 19, 2015

This is another reasonable common query that our clients have which is usually due to the particular User’s Preference settings that is logged in on a particular workstation. Furthermore it will usually affect the User on any workstation that they try and if they log in as a.n.other User then QuoteWerks will probably behave as expected. Ref. […]

READ MORE

Modifying the QuoteWerks Document Open screen grid columns (pre v5.2)

Apr 29, 2015

This can be achieved by modifying your User.ini file settings in the OpenWindowGridSettings section. Firstly, identify the name of your User.ini file by opening the Tools menu | My Preferences screen; you will find the ini file name at the bottom left: Next, CLOSE QUOTEWERKS and locate the INI file which will be in the […]

READ MORE