Selection of Column

Rachanab

New Member
Joined
Sep 22, 2013
Messages
8
Hello

I want to Select the data from the column, where i am using a code which select first last cell value from down and then i want to select the data from that cell value, but i dont want to select the first row(header of table)

for that I am using following code

Range("C1048576").Select
ActiveCell.End(xlUp).Select
Range(ActiveCell, ActiveCell.End(xlUp).Rows - 1).Select

It is showing an error message.

Please provide me the code for the same

Thanks and Regrads
Rachana
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
You should be able to do that with this single line:
Range("C2:C" & Cells(Rows.Count, "C").End(xlUp).Row).Select
 
Upvote 0
You should be able to do that with this single line:
Range("C2:C" & Cells(Rows.Count, "C").End(xlUp).Row).Select

Up until recently, that is how I coded the argument to the Range property, but I have started using this shorter method which, besides being short, I like because it eliminates the concatentation as well...

Range("C2", Cells(Rows.Count, "C").End(xlUp)).Select
 
Upvote 0
Dear Rick

Thanks for your help
As i am very new to programming i required your help very frequently.

Regards
Rachana
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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