+ Reply to Thread
Results 1 to 20 of 20

How to copy 4 columns from one workbook to another workbook

  1. #1
    Registered User
    Join Date
    11-20-2020
    Location
    libya
    MS-Off Ver
    Office 365
    Posts
    21

    How to copy 4 columns from one workbook to another workbook

    I would like to copy 4 columns from one workbook to another
    Columns are "A - I - M - N"
    And upon modification or addition
    A change occurs in another file.

    Hope that was clear and hope for help.

  2. #2
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: How to copy 4 columns from one workbook to another workbook

    Hi walid,

    Try below code ...
    Please Login or Register  to view this content.
    If I was able to help, you can thank me by clicking the * Add Reputation under my user name

  3. #3
    Registered User
    Join Date
    11-20-2020
    Location
    libya
    MS-Off Ver
    Office 365
    Posts
    21

    Re: How to copy 4 columns from one workbook to another workbook

    Thank you for your interest
    I'll try to tell you what's going on with me
    Last edited by walid ali; 11-22-2020 at 05:36 AM. Reason: Thank you for your interest

  4. #4
    Registered User
    Join Date
    11-20-2020
    Location
    libya
    MS-Off Ver
    Office 365
    Posts
    21

    Lightbulb Re: How to copy 4 columns from one workbook to another workbook

    Hi nankw83
    I would like to thank you very much
    On the code you provided me
    I would like to tell you that it is a successful symbol
    I was trying for two weeks, but without result
    Tried with many code

    I was very happy to get to know you and I'm very happy with the success of the code

    There are only two notes:
    When the columns are moved to the other workbook
    The workbook opens to which you want to copy the data
    But it shouldn't work

    Thank you
    Last edited by walid ali; 11-22-2020 at 05:37 AM.

  5. #5
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: How to copy 4 columns from one workbook to another workbook

    Quote Originally Posted by walid ali View Post
    There are only two notes:
    When the columns are moved to the other workbook
    The workbook opens to which you want to copy the data
    But it shouldn't work
    I am not really sure I understand what you mean ? So do you want the copied columns to be moved to a new workbook or a certain workbook that you use ? If destination workbook is an existing file, then you can use the below ..

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    11-20-2020
    Location
    libya
    MS-Off Ver
    Office 365
    Posts
    21

    Re: How to copy 4 columns from one workbook to another workbook

    I apologize because it seems that I have not explained what I want clearly.
    I mean , the workbook to which the data was transferred opens after the data was transferred to it and I do not want that

  7. #7
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: How to copy 4 columns from one workbook to another workbook

    So do you want the file to be closed afterwards?

  8. #8
    Registered User
    Join Date
    11-20-2020
    Location
    libya
    MS-Off Ver
    Office 365
    Posts
    21

    Re: How to copy 4 columns from one workbook to another workbook

    exactly

  9. #9
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: How to copy 4 columns from one workbook to another workbook

    You can add the line in blue toward the end of the code

    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    11-20-2020
    Location
    libya
    MS-Off Ver
    Office 365
    Posts
    21

    Thumbs up Re: How to copy 4 columns from one workbook to another workbook

    Good morning mister nankw83
    thank you very much
    I am very grateful for your help
    We hope to keep in touch
    This is exactly what I needed

  11. #11
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: How to copy 4 columns from one workbook to another workbook

    Glad to help … If that takes care of your question, please take a moment & mark this thread as [SOLVED] from the Thread Tools above your first post

  12. #12
    Registered User
    Join Date
    11-20-2020
    Location
    libya
    MS-Off Ver
    Office 365
    Posts
    21

    Re: How to copy 4 columns from one workbook to another workbook

    Gladly

  13. #13
    Registered User
    Join Date
    11-20-2020
    Location
    libya
    MS-Off Ver
    Office 365
    Posts
    21

    Re: How to copy 4 columns from one workbook to another workbook

    Sorry ... I hope I'm not annoying
    Another problem happened ....
    The workbook from which columns are copied "A - I - M - N"
    I enter data into it through a UserForm
    After completing the process, the Excel file opens
    It shouldn't work

  14. #14
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: How to copy 4 columns from one workbook to another workbook

    Can you post your existing code or file

  15. #15
    Registered User
    Join Date
    11-20-2020
    Location
    libya
    MS-Off Ver
    Office 365
    Posts
    21

    Re: How to copy 4 columns from one workbook to another workbook

    OK
    Only .... The user interface is in Arabic

    So you can access the Excel 1234 file
    To access code 1234

    1- In the final workbook ......sheet1
    2- In student fees ............ sheet1

    Attachment 705478
    Attachment 705479
    Attachment 705480
    Attachment 705481


    I could not find the attachment

    If possible, e-mail
    So that I can send the file
    Last edited by walid ali; 11-23-2020 at 12:25 PM.

  16. #16
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: How to copy 4 columns from one workbook to another workbook

    Please follow the "HOW TO ATTACH YOUR SAMPLE WORKBOOK" instructions on the yellow banner on the top of the page

  17. #17
    Registered User
    Join Date
    11-20-2020
    Location
    libya
    MS-Off Ver
    Office 365
    Posts
    21

    Re: How to copy 4 columns from one workbook to another workbook

    Please take a look at these notes
    OK
    Only .... The user interface is in Arabic

    So you can access the Excel 1234 file
    To access code 1234

    1- In the final workbook ......sheet1
    2- In student fees ............ sheet1

    Pictures matter


    https://www.excelforum.com/attachmen...1&d=1606154570
    https://www.excelforum.com/attachmen...1&d=1606154557
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by walid ali; 11-23-2020 at 02:23 PM.

  18. #18
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: How to copy 4 columns from one workbook to another workbook

    Hi walid,

    So, if I understand correctly, once your UserForms are filled, you want to copy the 4 columns from "Final workbook" to "Student fees" workbook after clicking on "display data" button & the password is correct ?

  19. #19
    Registered User
    Join Date
    11-20-2020
    Location
    libya
    MS-Off Ver
    Office 365
    Posts
    21

    Re: How to copy 4 columns from one workbook to another workbook

    good morning

    Hi nankw83


    Well ... once you have filled out your user forms you want to copy the four columns from the final workbook to your student drawing workbook <............ that's right

    After clicking on the "View Data" button, is the password correct? <............. This is an error

    ................Which I want...................

    After clicking the Save on UserForm 1 button <............. that's what I want

    5.jpg
    Last edited by walid ali; 11-24-2020 at 04:01 AM.

  20. #20
    Registered User
    Join Date
    11-20-2020
    Location
    libya
    MS-Off Ver
    Office 365
    Posts
    21

    Re: How to copy 4 columns from one workbook to another workbook

    Hi .... nankw83
    I did not find "Solved" in the tools. Is it possible to guide me?

+ 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] Copy columns to new workbook with matched headers, then save new workbook as a text file.
    By haitran in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-17-2017, 05:53 PM
  2. Replies: 2
    Last Post: 03-18-2017, 02:05 AM
  3. [SOLVED] Copy Select Columns from closed workbook into active workbook
    By 3345james in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-09-2015, 02:04 PM
  4. Need to Copy Columns from Previous Workbook to Newly Opened Workbook
    By BYizz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-06-2012, 06:33 AM
  5. [SOLVED] COPY from an open workbook with particular sheet and columns to active workbook
    By purin0c0 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-12-2012, 03:57 PM
  6. 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
  7. Copy columns from closed workbook to different columns in open workbook
    By jGLZa in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2012, 11:03 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