VBA Copy table columns to another worksheet

Melimob

Active Member
Joined
Oct 16, 2011
Messages
395
Office Version
  1. 365
Hi

Similar to my other query

I want to copy and paste or do value = value for a dynamic range of a column table (meaning last row may always differ) in to another worksheet, starting at a specific cell.

Here is what I tried:

Code:
Sub PotentialClientList()


Dim dbR As Range
    Set dbR = Sheets("ABC Clients ").ListObjects("Table6").DataBodyRange
    
  Sheets("Partner Slide").Range(C10).Value = dbR.Columns(1).Value


    
    


End Sub

Many thanks for any advice!
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hi,

You can test following

Code:
ActiveSheet.ListObjects("Table6").HeaderRowRange.Select

Hope this will help
 
Upvote 0
Hi,

You can test following

Code:
ActiveSheet.ListObjects("Table6").HeaderRowRange.Select

Hope this will help

Hi James

Thank you for your response but I am a real novice and trying to has together code by searching on internet.

Where would I place your piece of code within mine?

I tried it in various places but still get an error.

I think my original is faulty anyhow.

All I need to do is take column B (1st column of my table6) values and copy paste special to start from cell c10 down in my destination sheet?

Many thanks for any advice.
 
Upvote 0
Hi,

You can test

Code:
Sub PotentialClientList()Dim dbR As Range
    Set dbR = Sheets("ABC Clients ").ListObjects("Table6").ListObjects("Table6").HeaderRowRange
    dbR.Copy destination:=Sheets("Partner Slide").Range("C10") 
End Sub

Hope this will help
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,525
Members
449,088
Latest member
RandomExceller01

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