+ Reply to Thread
Results 1 to 4 of 4

problems with macro copy columns into another workbook

Hybrid View

  1. #1
    Registered User
    Join Date
    04-23-2008
    Posts
    50

    problems with macro copy columns into another workbook

    Hello,

    Please can anyone help me with the attached VBA code. It works but somehow it copies only one row of data. I need it to copy all data from columns B:G

    code.txt

    I would appreciate your help.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: problems with macro copy columns into another workbook

    Would this do the job in one step?

    ActiveSheet.Range(Cells(1, 2), Cells(1, 2).End(xlDown).Offset(0, 5)).Copy Destination:=Workbooks(ThisWkBkName).Sheets("Sheet1").Range("B1")

  3. #3
    Registered User
    Join Date
    04-23-2008
    Posts
    50

    Re: problems with macro copy columns into another workbook

    hi,
    The code I have lets me copy data when the workbook is closed...

  4. #4
    Registered User
    Join Date
    04-23-2008
    Posts
    50

    Re: problems with macro copy columns into another workbook

    any ideas how to make it work?

+ 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] macro to copy columns from one workbook to another
    By megtoma in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-26-2014, 03:22 PM
  2. Problems with a macro to copy rows into columns
    By strippy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2013, 04:21 PM
  3. Macro to copy entire columns with matching dates from another workbook
    By rocksan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2012, 01:23 PM
  4. Macro to copy and paste columns from one workbook to a new workbook
    By windcloud2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-05-2012, 11:45 AM
  5. Need macro to Concatenate columns in one workbook and copy to another workbook
    By capnhud in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-08-2010, 05:14 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