Macro to copy entire column from table

coucar3456

New Member
Joined
Jun 29, 2016
Messages
11
I'm trying to figure out how to copy all records from one column or field. I just below Macro and it only copies the first record:

Open Table: tbl_Equipment

GoToControl: Equipment

RunMenuCommand:Select Entire Column

Run Menu Command:Copy
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
If trying to copy entire column on the worksheet
Code:
Sub copyColumn()
Range("E:E").Copy
End Sub

If trying to copy specific column on table
Code:
Sub copytblCOLUMN()
Range("tbl_Equipment[Equipment]").Copy
End Sub
 
Last edited:
Upvote 0
Not sure that solution applies. This is the Access part of the forum and I'd venture to say there's no such thing as a Range in Access.
Once you copy a field in this manner, then what are you doing with it? You cannot simply paste. You must paste append. I don't use macros, so you'll have to see if there's a paste append command in Access macros. It could be a Docmd.Runcommand method.
 
Upvote 0
Micron, you are correct. I didnt notice i was still in the access section. Must have forgot to switch over.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,221,808
Messages
6,162,097
Members
451,742
Latest member
JuanMark10

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