Every other Row for a chart range

Red Fish

New Member
Joined
Mar 27, 2013
Messages
4
I need to chart out this sheet I have, but it has 51k rows. Too much to chart. So I am going to just do every other row. Right now I just hide every other row then select the two rows for my chart. This takes a while. I am thinking it would be better to just select every other row in the column and use that. I just don't know the syntax for it. Currently I use this to select.

Range("C:C,H:H").Select

How can I mod that to give me every other row in Column C and Column H?

Thanks
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Any thoughts on this? I have a work around where I hide every other row using this code.
Code:
 Application.ScreenUpdating = False    Application.EnableEvents = False
     
    Dim Xi As Long
       For Xi = 2 To iRow Step 2
       Rows(Xi).Hidden = True
       
    Next Xi
    Application.ScreenUpdating = True
    Application.EnableEvents = True

But it takes quite awhile to hide all those rows. With a large number of files I need to process this will not work, just too slow. I have tried to do some loops to add all the cells I want in to a variable but that is not producing anything useful besides errors. I can't believe there is not a simpler solution. Although it is Microsoft.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

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