View Single Post
 
Old 07-24-2018, 11:01 AM
zhead zhead is offline Windows 7 64bit Office 2010 64bit
Advanced Beginner
 
Join Date: Mar 2015
Location: Texas
Posts: 32
zhead is on a distinguished road
Default excel sheet code help

I have the sheet code below and I am wondering if it is possible to be able to let the user enter more than one Job Template Number using some sort of separator

Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim strCellName As String
Dim strReplace As String
strCellName = Target.Value
 
If InStr(1, strCellName, "@Para1") > 0 Then
strReplace = InputBox("Job Template Number OR % (Wildcard)")
If strReplace = "" Then
Cancel = True
Exit Sub
End If

strCellName = Replace(strCellName, "@Para1", strReplace)
End Sub
Reply With Quote