How to modify this code so the first cell is not included

mrchonginhk

Well-known Member
Joined
Dec 3, 2004
Messages
679
Now this code apply to all cells in Col B

For Each cell In Sheets("Sheet1").Columns("B")

WHat if I want it start from B2, B3 etc ? ie B1 is not included
Thanks
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hi there,

The following will start from cell B5 (change the 5 to suit) to the end of column B:

Code:
For Each cell In Sheets("Sheet1").Range("B5", Range("B" & Rows.Count).End(xlUp))

HTH

Robert
 
Upvote 0

Forum statistics

Threads
1,206,761
Messages
6,074,780
Members
446,087
Latest member
PinkFloyd

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