+ Reply to Thread
Results 1 to 5 of 5

copy column A-Z

  1. #1
    Forum Contributor
    Join Date
    02-20-2023
    Location
    thai
    MS-Off Ver
    2016
    Posts
    106

    copy column A-Z

    Hello,

    I want to copy sheet to new file.
    If I want copy column A-Z only.
    Now my code as below?
    How to edit it?

    Please Login or Register  to view this content.
    Thank you

  2. #2
    Registered User
    Join Date
    10-19-2022
    Location
    Viet nam
    MS-Off Ver
    365
    Posts
    3

    Re: copy column A-Z

    Thử sửa đoạn code sau
    SourceSheet.Copy Before:=DestWorkbook.Sheets(DestWorkbook.Sheets.Count)
    thành
    SourceSheet.rang("AZ1:AZ1000000").Copy Before:=DestWorkbook.Sheets(DestWorkbook.Sheets.Count).Range("A1")

  3. #3
    Forum Contributor
    Join Date
    02-20-2023
    Location
    thai
    MS-Off Ver
    2016
    Posts
    106

    Re: copy column A-Z

    Now compile error in named argument not found.

    How to solve it?
    Attached Images Attached Images
    Last edited by fairyme; 10-01-2023 at 08:48 PM.

  4. #4
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: copy column A-Z

    Maybe so?
    Change references where required.
    Please Login or Register  to view this content.
    Experience trumps academics every day of the week and twice on Sunday.

  5. #5
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: copy column A-Z

    With finding "ter" or "pop" sheet.
    Please Login or Register  to view this content.
    Change the path and workbook name to be saved as.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Insert a new column and copy the column with formula in the left column to the latest col
    By Sakurayuki in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-27-2021, 11:29 AM
  2. [SOLVED] Copy one column, but loop through a second column multiple times depending on first column
    By redapplesonly in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-08-2019, 10:12 AM
  3. [SOLVED] Loop through Column B msgboxYesNo if Yes copy to Column C, if No copy to Column D
    By WBravard in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-09-2017, 09:46 AM
  4. Copy data from sheet1 column with dynamic date, and copy data to second sheet column
    By Renaliiii in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-25-2016, 04:44 PM
  5. Replies: 1
    Last Post: 05-30-2015, 04:38 PM
  6. Replies: 5
    Last Post: 11-17-2014, 02:40 PM
  7. Vba - find next empty column, insert column, copy paste values & copy paste formulas
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2012, 12:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1