Stack Column and Shapes in Excel

MeetGlen

New Member
Joined
Aug 8, 2011
Messages
21
Hi All,

I am not able to work on the Stack Column Chart in VBA. One main reason i understood from the debug was its not able to reference to particular chart when it becomes active. Help on this would be very much appreciated.

And second aspect is if there is any workaround in working out excel shapes in excel.

Hope i making it understandable.

Thank you for the help.

Regards Glen
 
i tried these two scenerios

(1) finalrow = Cells(Rows.Count, 1).End(xlUp).Row
For i = 3 To finalrow
If Cells(i, 3).Value <> IsNumber Then
Cells(i, 1).Resize(1, 9).EntireRow.Delete
End If
Next i

(2) finalrow = Cells(Rows.Count, 1).End(xlUp).Row
For i = 3 To finalrow
If Cells(i, 3).Value <> Cells(i, 3).NumberFormat("########") Then
Rows(i).EntireRow.Delete
'Cells(i, 1).Resize(1, 9).EntireRow.Delete
End If
Next i

'My Case is that i have data columns A2 : I2 xldown. i want to delete entire row if value in C3:C is not meeting the eight digits no (e.g 40003566).
Note. i have formated all data in C3:C as number, so when i use the above (2) code it deletes rows which is not intended. (1) code also deletes off 5 rows which is not intended, ie it deletes the above "criteria<>" metioned

Please help
 
Upvote 0

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Code:
finalrow = Cells(Rows.Count, 1).End(xlUp).Row
For i = finalrow To 3 Step -1
If Len(Cells(i, 3).Text) <> 8 Then
Cells(i, 1).EntireRow.Delete
End If
Next i
... you have step backwards if you are deleting from the list that you are processing.
 
Upvote 0

Forum statistics

Threads
1,214,864
Messages
6,121,984
Members
449,058
Latest member
oculus

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top