Skip to content

Commit 96174ad

Browse files
committed
added conditional formatting for rows which are ignored during file creation
1 parent b7c1f57 commit 96174ad

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

Module1.bas

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,12 @@ If insertLine <> "" Then
237237
ws.Cells(1, 1).Validation.Delete
238238
ws.Cells(2, 1).Validation.Delete
239239
ws.Cells(3, 1).Validation.Delete
240+
241+
'set conditional formatting rule for rows which will be ignored
242+
With ws.Range("=$A$1:$Z$1500")
243+
.FormatConditions.Add Type:=xlExpression, Formula1:="=INDIRECT(""a""&ROW())=""Ignore Row"""
244+
.FormatConditions(.FormatConditions.Count).Interior.Color = ws_main.Range("IGNORE_ROW").Interior.Color
245+
End With
240246
End If
241247
End If
242248
End If

mysql_data_admin.xlsm

1.16 KB
Binary file not shown.

test001.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
INSERT INTO example_table VALUES (1,'{\"en\":\"House\", \"ru\":\"���\"}','testing varchar \"abc\"',1,12,DEFAULT);
22
INSERT INTO example_table VALUES (2,'{\"en\":\"Moon\", \"ru\":\"����\"}','testing varchar \'efg\'',999,14,DEFAULT);
33
INSERT INTO example_table VALUES (3,,'0',111,7,DEFAULT);
4+
INSERT INTO example_table VALUES (4,'this row will not be ignored','1',1);

0 commit comments

Comments
 (0)