Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Below is my macro to draw bar chart Pattern DarkUpward Diagonal if
Rng2.value in data sheet 3. Today, there are no data and I have this error 'data type mismatch' How can I fix this Thanks In advance Daniel Dim Cnt2 As Integer Dim S As Integer r = Range("B1").CurrentRegion.Rows.Count For Each Rng2 In Range(.Cells(2, 6), .Cells(r, 6)) Set Pts = ActiveChart.SeriesCollection(1).Points(Cnt2) Pts.HasDataLabel = True S = Now - Rng2.Value Pts.DataLabel.Font.Size = 7 Pts.DataLabel.Text = S If Now - Rng2.Value 3 Then Pts.Fill.Patterned Pattern:=msoPatternDarkUpwardDiagonal End If Cnt2 = Cnt2 + 1 Next Rng2 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Visual Basic Error Run Time Error, Type Mismatch | Excel Discussion (Misc queries) | |||
Help: Compile error: type mismatch: array or user defined type expected | Excel Programming | |||
Type Mismatch Error when getting data from another workbook | Excel Programming | |||
Befuddled with For Next Loop ------ Run - Time Error '13' Type Mismatch Error | Excel Programming | |||
Copying data to another worksheet gives "Type Mismatch" error | Excel Programming |