Range Selecting With Activecell

AT BABU

Board Regular
Joined
Oct 12, 2018
Messages
53
Office Version
  1. 2016
Platform
  1. Windows
Hi folks,

Thank you for my previous problem.
I have small problem for selecting total column form Active cell I writ blow Code but it working I get this error "Run time error '1004'

My Code

Range("ActiveCell", Range("ActiveCell" & Rows.Count)).End(xlDown).Copy

Please help me
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
62,380
Office Version
  1. 365
Platform
  1. Windows
If you want the entire column use
Code:
ActiveCell.EntireColumn.Copy
 

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
17,519
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Remove the quote marks - like this:
Code:
Range(activecell,activecell.End(xlDown)).Copy
 

AT BABU

Board Regular
Joined
Oct 12, 2018
Messages
53
Office Version
  1. 2016
Platform
  1. Windows
Thank you ,
But i need form Active cell to at end of the Excel Down(cell 1048576)
 

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
17,519
Office Version
  1. 365
  2. 2010
Platform
  1. Windows

ADVERTISEMENT

Thank you ,
But i need form Active cell to at end of the Excel Down(cell 1048576)
Try:
Code:
Range(activecell,cells(rows.count,activecell.column)).Copy
 

mikerickson

MrExcel MVP
Joined
Jan 15, 2007
Messages
24,071
Possibly

Code:
With ActiveCell
    Range(.Cells, .EntireColumn.Cells(Rows.Count, 1)).Copy
End With

Do you really need all those empty cells at the bottom of the column?
 

AT BABU

Board Regular
Joined
Oct 12, 2018
Messages
53
Office Version
  1. 2016
Platform
  1. Windows

ADVERTISEMENT

Hi Mikerickson,

Thank you for your answer.

Do you really need all those empty cells at the bottom of the column?

Just I need only 1000 cells form active cell
 

AT BABU

Board Regular
Joined
Oct 12, 2018
Messages
53
Office Version
  1. 2016
Platform
  1. Windows
Thank you Mikerickson it working
 

Forum statistics

Threads
1,141,284
Messages
5,705,502
Members
421,399
Latest member
hjweiss00

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
Top