+ Reply to Thread
Results 1 to 2 of 2

How to copy data from a source file to other excel file without opening (target files)?

  1. #1
    Registered User
    Join Date
    07-09-2015
    Location
    Yangon,Myanmar
    MS-Off Ver
    15
    Posts
    1

    How to copy data from a source file to other excel file without opening (target files)?

    Dear all,

    I have been written VBA code in a excel sheet and this code locked with mother board serial number (my computer).
    When open excel, VBA run and test the current Motherboard number with the Number stored in excel sheet.
    If the two numbers are the same, excel file is open and if not the file is closed.

    The problem is, this excel sheet was already protected by VBA and dont allow to open if there is on other computer.
    I want to open this excel file at other computer ( with other Mother board serial number).
    I need to overwrite the previous data with new data without opening the excel file.
    Because, My VBA dont allow Ctl+Break feature, i can not by pass VBA, So i can not access my excel file.


    How can i write data to the selected excel file without opening? ( with VBA or other? ).

    Thanks

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to copy data from a source file to other excel file without opening (target files)

    You cannot edit a file without opening it.

    You can open the file with macros disabled. Doesn't it ask whether you want to run the macros when you open the workbook? If so, just say no.

    If not, you will have press F1 and ask your version of Excel how to disable macros.

    Here's a blog talking about doing this in Excel 2010 which is the version I have:
    http://smallbusiness.chron.com/open-...led-28054.html
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. Auto save Excel ODBC Connection to data source without opening file
    By newbie4 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-01-2015, 01:37 PM
  2. Replies: 4
    Last Post: 12-04-2014, 12:14 PM
  3. Copy, edit and save workbook to same location as source data file, not macro file.
    By Jasonhouse in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2014, 09:01 AM
  4. Update cell links between 2 excel file without opening source file
    By ferry in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-26-2012, 03:03 PM
  5. How to copy VB code from Source File to Target File programmatically?
    By sauerj in forum Word Programming / VBA / Macros
    Replies: 7
    Last Post: 02-16-2011, 10:30 AM

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