Loop macro to activate cell and then move to next cell

1021557

Board Regular
Joined
Dec 14, 2007
Messages
54
Hi Can anyone help me write a macro that will select all the non blank cells in column 'A' of my spreadsheet. All I want to do is for excel to go into each cell in col. A, activate it and move on to the next non blank untilk it reaches the end. I don't want to change the data in the cells.:confused:

Thanks

Mike
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Like this?

Code:
Sub Blks()
Columns("A").SpecialCells(xlCellTypeBlanks).Select
End Sub
 
Upvote 0
I'm sorry but what would be the purpose of that? It won't provide any value added? Unless I'm not understanding.
 
Upvote 0
Yup I knew someone was going to ask that:) It's imported form another programme and if you don't enter each cell the lookup formula that I have doesn't work, once you enter the cell and move on it does. Can you help?

Thanks

Mike
 
Upvote 0

Forum statistics

Threads
1,223,417
Messages
6,171,997
Members
452,438
Latest member
jimmyleung

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