D
David Fisher
I asked this question before with no reply so I will ask again in
a different format.
In a templet I want to us Chip Pearson time code for Times, Quick Entry
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Dim TimeStr As String
On Error GoTo EndMacro
If Application.Intersect(Target, Range("A1:A500")) Is Nothing Then
Exit Sub
for the following columns only
F,G,H,I,J,O,P,Q,S,C,Y,AB,AE,AH,AK,AN,AQ,AR,AW,AZ,BC,BF,BI,BL,BO,BR,BU,BY,
CG,CJ,CM,CP,CS,CV,CY,DB,DE,DH,DK,DN,DQ,DT,DW,DZ,EC,EF,EI,EL,EO,ER,EU,EX,
FA,FD,FG,FJ,FM,FP,FT,FU,FV,GA,GB,GC
but cannot come up with away of doing it.
I have try (Target, Range("F5:J100","O5:Q500",S5:S500",ETC))
I have try (Target, Range("F5:J500,O5:Q500,S5:S500,ETC"))
I have try (Target, Range("F5:F500","G5:G500","H5:H500","ETC"))
I have also try (Target, Range("MyTimeCol",Row ("5:500"))With no luck.
The problem is, this templet will be change when added to various
workbooks as some of the cols will be remove and other columns will
be added.
The other columns will contain data not related to time.
If I do this
If Application.Intersect(Target, Range("F5:GC500")) Is Nothing Then
all the other columns cannot be change to accept data as 1, 12 or yes.
Is there away I can these cols to work for Quick Entry?
a different format.
In a templet I want to us Chip Pearson time code for Times, Quick Entry
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Dim TimeStr As String
On Error GoTo EndMacro
If Application.Intersect(Target, Range("A1:A500")) Is Nothing Then
Exit Sub
for the following columns only
F,G,H,I,J,O,P,Q,S,C,Y,AB,AE,AH,AK,AN,AQ,AR,AW,AZ,BC,BF,BI,BL,BO,BR,BU,BY,
CG,CJ,CM,CP,CS,CV,CY,DB,DE,DH,DK,DN,DQ,DT,DW,DZ,EC,EF,EI,EL,EO,ER,EU,EX,
FA,FD,FG,FJ,FM,FP,FT,FU,FV,GA,GB,GC
but cannot come up with away of doing it.
I have try (Target, Range("F5:J100","O5:Q500",S5:S500",ETC))
I have try (Target, Range("F5:J500,O5:Q500,S5:S500,ETC"))
I have try (Target, Range("F5:F500","G5:G500","H5:H500","ETC"))
I have also try (Target, Range("MyTimeCol",Row ("5:500"))With no luck.
The problem is, this templet will be change when added to various
workbooks as some of the cols will be remove and other columns will
be added.
The other columns will contain data not related to time.
If I do this
If Application.Intersect(Target, Range("F5:GC500")) Is Nothing Then
all the other columns cannot be change to accept data as 1, 12 or yes.
Is there away I can these cols to work for Quick Entry?