+ Reply to Thread
Results 1 to 6 of 6

Copy data from closed book

  1. #1
    Registered User
    Join Date
    12-14-2011
    Location
    Hyderabad
    MS-Off Ver
    Excel 2003
    Posts
    9

    Copy data from closed book

    Hi All,

    I want to copy the data from closed workbook which varies path everytime and paste in other workbook by using dilogue box option to open the closed workbook.

    Please any one can assist me.

    Thank you in advance.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Copy data from closed book

    Hi, cbachu1,

    if you want to open the workbook change directory and folder if you know where itīs located and then maybe use GetOpenFilename or Application.Dialogs(xlDialogOpen).Show. Mind the difference: the first delivers path and name to a variable while the second opens the workbook.

    If you want to copy from a closed workbook have a look at Copy a range from closed workbook (Local, Network and on the internet).

    And could you please give a bit more details on
    ... paste in other workbook
    Ciao,
    Holger

  3. #3
    Registered User
    Join Date
    12-14-2011
    Location
    Hyderabad
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Copy data from closed book

    I want to copy the date from chandu workbook from range A10:C40 and paste it in other workb book

    I am using the Application.GetOpenFilename script to select the file. once i open that file i need to copy the date from the A10:C40 and paste it othe workbook.

    It would be appreciated if you can resolve my issue
    thank you in advance.

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Copy data from closed book

    Hi, cbachu1,

    the range from the opened workbook active sheet A10:C40 is copied to the workbook containing the macro, aqctiive sheet, added underneath in Column A, thereafter the opened workbook is closed without saving:

    Please Login or Register  to view this content.
    Letīs see what amendments need to be taken.

    Ciao,
    Holger

  5. #5
    Registered User
    Join Date
    12-14-2011
    Location
    Hyderabad
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Copy data from closed book

    Thank you very much for your responce.

    Can you please let me the ways to learn macro's

    Do you know any institute which can train to learn macro's

    If you have any material can you please share

    Thank you in advance.

  6. #6
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Copy data from closed book

    Hi, cbachu1,

    please have a look at New to Excel Programming and looking for learning materials where youīll find some tips on what and where to find materials on this topic.

    Ciao,
    Holger

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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