Hey there,
I have a code that updates data from one file to another.....esentially, i run this code daily and it updates to a compiled daily log of all of the previous days data.
Currently, i am manually coloring the cells to visually assist in grouping what data has been uploaded for each day.
Can anyone help with adding this step to the code below......
HERE ARE THE TWO COLORS THAT I'D LIKE TO OSSOCILATE BETWEEN:
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent3
.TintAndShade = 0.799981688894314
.PatternTintAndShade = 0
End With
and
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent5
.TintAndShade = 0.799981688894314
.PatternTintAndShade = 0
End With
THANKS
Tuktuk
I have a code that updates data from one file to another.....esentially, i run this code daily and it updates to a compiled daily log of all of the previous days data.
Currently, i am manually coloring the cells to visually assist in grouping what data has been uploaded for each day.
Can anyone help with adding this step to the code below......
Code:
Sub UpdatePOQntyReducDB()
Dim lookupfilename As String
lookupfilename = "\\Sr\SharedDocs\CSPSharedFILES\POQuantityTrackingTool\POQuantityTrackingReport.xls"
Workbooks.Open lookupfilename
Workbooks("POQuantityTrackingReport.xls").Activate
'locate the cell in first column +1 cell past the previous days upload
'this preps for the next upload
Dim LastRowDB As Long
LastRowDB = Cells(Rows.Count, "D").End(xlUp).Row
Range("A" & LastRowDB).Select
'move the actice cell down ONE ROW
ActiveCell.Offset(1, 0).Select
'Open the Current Days Invoices
Workbooks("POQntyReductionTool3.xls").Activate
Dim LastRowPO As Long
'Copy CurrentDays Invoices
LastRowPO = Cells(Rows.Count, "D").End(xlUp).Row
Range("A2:M" & LastRowPO).Select
Selection.Copy
'Open the CompilingMaster tab (database) file
Workbooks("POQuantityTrackingReport.xls").Activate
ActiveSheet.Paste
MsgBox ("Today's invoices have been updated to the POQuantiyTrackingReport.")
Range("A1").Select
ActiveWorkbook.Save
ActiveWorkbook.Close
Workbooks("POQntyReductionTool3.xls").Activate
Range("A1").Select
Workbooks.Close
End Sub
HERE ARE THE TWO COLORS THAT I'D LIKE TO OSSOCILATE BETWEEN:
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent3
.TintAndShade = 0.799981688894314
.PatternTintAndShade = 0
End With
and
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent5
.TintAndShade = 0.799981688894314
.PatternTintAndShade = 0
End With
THANKS
Tuktuk