sellecting all table

Awesome77

New Member
Joined
Dec 31, 2017
Messages
2
Hi to all,

hope you are well

I have just entered the VBA world, and I would like your support regarding the below code in which VBA is not accepting it

range("A3", range("A1").End(xlDown)).Select

please note that I'm using excel 2016

thanks a lot in advance
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi & welcome to MrExcel.
In what way isn't that code working?
 
Upvote 0
Just to add to Fluff's question, What result were you expecting? and what does your data look like?
 
Upvote 0
Hi Fluff & Mark

happy to be here with such wonderful people..

Actually, I'm trying to write a code where I select all the table from the start to the all the way to the end..

e.g range starts with A1 and ends with c3

thanks a lot
 
Upvote 0
Code:
Range("A1:C" & Columns("A:C").Find("*", , xlValues, , xlByRows, xlPrevious).Row).Select
 
Upvote 0
Assuming your Table is name Table1
Try this:
Code:
Sub Select_Table()
'Modified  8/19/2018  10:46:45 PM  EDT
ActiveSheet.ListObjects("Table1").Range.Select
End Sub
 
Upvote 0
Another option
Code:
ActiveSheet.UsedRange.Select
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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