Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-24-2018, 11:01 AM
zhead zhead is offline excel sheet code help Windows 7 64bit excel sheet code help Office 2010 64bit
Advanced Beginner
excel sheet code help
 
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
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA code If... then... copy... from one sheet to another Seiquo Excel Programming 2 06-28-2017 10:52 AM
VBA Newbie (Trying to write a code to copy and paste info from one sheet to another) Forum2000s Excel Programming 2 05-07-2017 04:51 AM
excel sheet code help How to copy excel sheet withe HEADER and Paste into new sheet? cloudforgiven Excel Programming 6 01-05-2017 07:30 PM
VBA Code to Hide columns based on selection on prior sheet Silver1379 Excel Programming 0 04-15-2015 08:40 AM
excel sheet code help Any tutorial same as to this excel sheet with code? Learner7 Excel 1 05-18-2010 05:31 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:40 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft