How to sync two excel files, the content is the same in both files after edit.

I have two excel files, which are data and edit by multi users, how can I sync the master files to the copy files after edit?
Is this operation required VBA? marco?

Hi,
Your request could be done via VBA code. Here are two ideas.
One:
Syncing the data from master file to the copy file without opening copy file. Sample code
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
Dim cnn As Object, SQL$, s$
Select Case True
Case Target.Value = ""
s = "null"
Case IsDate(Target.Value)
s = "#" & Target.Value & "#"
Case IsNumeric(Target.Value)
s = Target.Value
Case Else
s = "'" & Target.Value & "'"
End Select
Set cnn = CreateObject("ADODB.Connection")
cnn.Open "provider=microsoft.jet.oledb.4.0;extended properties='excel 8.0;hdr=no';data source=" & ThisWorkbook.Path & "\test folder\Book2.xls"
SQL = "update [Sheet1$" & Target.Address(0, 0) & ":" & Target.Address(0, 0) & "] set f1=" & s
cnn.Execute (SQL)
cnn.Close
Set cnn = Nothing
End Sub
Two:
Saving the master file as copy file before closing. Reference:
https://msdn.microsoft.com/en-us/library/office/ff194765.aspx?f=255&MSPPError=-2147217396
If you have any further question about coding, I recommend you post the question to the MSDN forum for Excel
http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
Regards,
George Zhao
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs.
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected].

Similar Messages

  • How to read the contents in the excel file on the basis of colunm heading?

    Hi,
    Here is my requirement like that  in excel file i got the customer number , amount etc....
    And my required fields are customer and amount. In file customer nr is under the heading 'CUSTOMER' and amount is under the heading 'AMOUNT'.
    Is there any FM for reading the contents under the colunm heading of excel?
    Please suggest me.
    Thanks,
    Harshal kulkarni

    Hi Harshal ,
    I dont think there is such function module /BAPI/Class-Method .
    but if your excel file is dynamic you can write your own logic using field - symbols.
    Regards ,
    Praveen

  • How to Open Two Excel Files in Multiple Monitors in Windows 7

    How to open two excel files in two excel windows using multiple monitors in Windows 7.
    Currently it opens multiple files on top of each other on the same one monitor.
    I found this article in a blog it says
    "The snap feature that you are looking for will not work unless you open two instances of Excel. This is because Excel Unlike Word is not a True SDI Application. Microsoft is aware of the Issue however there is no resolution to the problem but the workaround"

    If you are working almost the entire day in front of your computer at your office with lots of Excel Sheets and Word, then probably you might be working with a
    dual monitor or may be even more than that. Studies have shown that having an additional monitor increases the productivity by 20 to 30 percent (Source: NY Times)
    But some applications like MS Office Excel, even though you open multiple files, they are all from the same instance of the application. So if you want to compare two
    Excel
    files, then you may not be able to have it in two
    separate monitors as the files are loaded using the same instance of Excel. If you move one
    Excel
    file to the other window, the other Excel files are also moved to the other window.
    So how to have two separate Excel files or other application side by side in dual monitors?
    Option A:
    In Excel 2003, go to Tools -> Options ->
    General tab.
    Make sure the option, ‘Ignore other applications’ is checked. Now all the Excel files will be opened as separate instance and you can move the Excel files individually across the monitors.
    In Excel 2007, Click the Office button ->
    Excel Options -> Advanced.
    Under General, check ‘Ignore other applications that use Dynamic Data Exchange’.
    or
    As this method forces each Excel file as a separate instance, the memory consumption will be more. If you don’t want too many memory consumption then you can open only two instances (see
    Option B) and manage wisely to view in both the monitors.
    Note: If you are having issues like Excel opens without displaying a workbook, then you may have to
    uncheck this option. (See Microsoft Help for more details on this). You can use option B in this case. I have this option checked and I have not faced any issue yet.
    Option B:
    They key here is, the application has to be loaded as separate instances. Lets say you have opened an Excel file in
    Monitor 1 and you want to open the next excel file in Monitor 2. You can usually open another instance of Excel by browsing through the
    Start Menu -> Programs -> Microsoft Office ->
    Excel. Make sure this newly opened Excel file is the last Excel file you had viewed and then double click on the Excel file that you wanted to open. This will force the Excel to
    open
    in the second instance of Excel. Now you can move these
    two excel files separately across windows or monitors.
    This may be little cumbersome way to open new instances of Excel every time. The easy solution would be to keep these links in the
    quick links near the Start button. So, every time you want to open a new instance of the application, you can just use those quick links.
    hope work thanks
    http://www.lytebyte.com/2008/05/13/how-to-open-two-excel-files-side-by-side-in-separate-monitors/

  • I have two computers and one iphone, one computer and the iphone are synchonized but how can I copy the contents to the second computer?

    I have two computers (1 PC and 1 iMac) and one iphone, the PC and the iphone are synchronized but I cannot copy or sync the contents to the iMac. How can I copy the contents? Can I connect the PC to the iMac so that I can use the PC as a hard-disk? Will that affect the system to work smoothly?
    Thanks

    got it fixed. didnt know that if you log in with ex. [email protected] it brings up different stuff than if you log in with 12345 as the username

  • How to read the contents of the Uploaded file ?

    hi @,
    I have used the File upload and Download UI elements as per the tutorial available. Now my requirement is to read the contents of the file and transfer it to the Backend system.
    How can I achieve the desired fucntionality.
    Thanks in advance,
    Regards,
    Amit

    try this code to store image file in back end system.
    IWDResource res=wdContext.currentMyDataElement().getPictureres();
              InputStream in=res.read(false);
              ByteArrayOutputStream bout=new ByteArrayOutputStream();
              int length;
              byte[] part=new byte[10*1024];
              while((length=in.read(part))!=-1)
              bout.write(part,0,length);
              in.close();
    pstmt.setBytes(8,bout.toByteArray());
    If it is other than image file like word or text then try this in action
    IWDResource resource = wdContext.currentResElement().getResorce(); // your existing handle to the upload resource type
                try {
                   InputStream stream = resource.read(true);
                   byte b[]= new byte[1000];
                   stream.read(b);
                   String str = new String(b);
                   int i=str.length();
                   wdContext.currentContextElement().setOut(str);
                   wdContext.currentContextElement().setSize(i);
                   wdContext.currentResElement().setResourceurl(
                        wdContext.currentResElement().getResorce().getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal()));
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    The in back end field where u store the file should be byte array.
    Regards,
    H.V.Swathi

  • How to get the content of the uploaded file.

    Hi Experts,
    I am using a input box to get the path of the file to be uploaded.(I am not using FILE UPLOAD UI Element).Could you please let me know how to get the content of the uploaded file.
    Regards,
    Arun

    >
    ARUN KUMAR.S wrote:
    > Hi Experts,
    >
    > I am using a input box to get the path of the file to be uploaded.(I am not using FILE UPLOAD UI Element).Could you please let me know how to get the content of the uploaded file.
    >
    > Regards,
    > Arun
    You will not be able to use a normal InputField to upload file contents.  This is not allowed by the browser security model. You must use one of the upload specific UI mechanisms - the FileUpload UI element or as of 7.01 ACFUpDownload or FlashIslands.

  • How to extract the contents of the Jar file?

    Hello,
    Can anyone tell me how to extract the contents of the Jar file?
    An example will be highly appreciated.
    Thanks.

    From command line, or from within a java application?
    Kaj
    Btw. Why do you need to do it. You do know that you can add jars to the classpath and read resources from them without extracting the file?

  • My I-Pad screen is black, I tried to sync and restore I-Pad, it showes the contents on the computer and pulling out pictures and other files, but screen is black. what can I do?

    My I-Pad screen is black!! I tried to sync and restore I-Pad, it showes the contents on the computer and pulling out pictures and other files, but screen is black. I don't know what happened! what can I do?

    I have this problem as well...however, resetting/restoring did not take place when I followed the same instructions but got nothing on the screen.  Thanks in advance.

  • How to sync & view Excel file

    How to sync & view Excel file(s)?

    You have to purchase an application that supports them.  Either docs to go or quick office will work..

  • How to sync two IPhone with one PC , but with different applications

    How to sync two IPhone with one PC , but with different applications ?
    We have two IPhones , but one PC , we want to sync separately , is that possible ?

    Absolutely, connect each phone, select what content you want on each phone, then hit the sync button. iTunes will keep everything straight, by device, upon subsequent syncs, including separate backups.

  • How to sync two libraries in to a third library?

    I have a MacBook pro with two user-accounts, each with separate iTunes-libraries. I'm also building a Home Theater PC using Mac mini. Now, I would like to have the contents of the two iTunes-libraries on the MBP on the Mac mini. How do I do that?
    Ideally, whenever someone adds content to one of those two libraries, it's automatically copied over to the mini. They could be copied to the "Automatically add to iTunes"-folder on the mini, so they would be automatically added to the iTunes-library on that machine.
    Note: this would only be one-way syncing. The two libraries on the MBP can remain separate, and they would not be receiving any content from each other or from the library on the Mini.
    This sounds simple, but it's not. I have looked at Folder Actions and Automator, but there doesn't seem to be an easy solution to this. I don't really know AppleScript, so I don't know how to script this. Currently I'm looking at third-party apps to handle this (like TuneRanger: http://www.acertant.com/web/tuneranger/default.htm), but it seems that those apps do not handle this automatically requiring manual work to move the content over.
    I would be more than willing to accept suggestions. Either scripts, third-party apps.... anything! Or am I really the only person with a problem like this?
    Some of you might be asking "why not simply stream the libraries to the mini?". Yes, that would be simplest solution. But I want the content to be available independently, without the MBP. If I'm lazying in the couch, I want to be able to access that content without having to turn the MBP on and/or launch iTunes on it.
    thanks in advance

    Use Windows Media Player ?to sync. Each device has it's own sync properties. What you are trying to do is a feature of that software. I do not use the Creative software at all...only the Zencast Organizer (as I needed a podcast aggregator anyway).

  • How to sync two computers with two different languages (english, german) without having entries like "Recently Bootmarked" in both languages?

    On a PC i have Windows 7 in running in German, and Firefox also in german. My MacBook Pro is running in English, so Firefox also does.
    When Firefox is syncing, both language phrases are synced. The English version adds "Recently Bootmarked" and "Recent Tags" ... the German Version adds "Kürzlich als Lesezeichen gesetzt" und "Kürzlich verwendete Schlagwörter". These entries are the same, only language sensitive.
    How can i fix this?

    Hi Carolyn,
    Thanks for this.
    Do you think there is any way to get the content of the libraries onto one account?
    Would home sharing work just to facilitate the movement of the tracks?
    Thanks again!

  • I have two Macs: an MBA and the new iMac.  Is there a way to have iTunes and all the content in it identical on both machines?

    I have two Macs: an MBA and the new iMac.  Is there a way to have iTunes and all the content in it identical on both machines?

    Yes you can copy the content to your new machine and use Home Sharing to keep the content identical
    Connect the two machines via an ethernet cable it is 3 times faster than Wifi. Turn wifi off on one machine to enforce ethernet connection
    In System Preferences, Sharing turn on File Sharing
    Then
    Copy the music/itunes folder from the Macbook pro to the music/ folder on the imac
    Both machines should now have the same library
    Disconnect H the ethernet cable
    Set up Home Sharing and under Settings at the bottom of the Home Sharing page. Select to transfer new purchases.
    Do the same on the other machine.
    Then when you r machines are connected by wifi and each time you start itunes it will transfer your new purchases
    Setting up home sharing

  • How to create a jar having the contents of the jar in a byte array?

    Hi,
    I have a server and client application. My server returns the contents of the jar in the form of byte array to the client on a particluar method call. Now at the client end, i want to reconstruct the jar to be used. How do I do this?
    The server uses the JarInputStream to read the contents of the jar to be returned. I have tried using the JarOutputStream, but looks like this works fine if we have spearate class files to be added to the jar. Now that I have the contents of the jar itself, how do i recreate the jar?
    Can anyone please help me with this?
    Thanks
    Rajani

    Have you ever gotten the raw byte copy to work? If so, how?
    I download a jar via InputStream and save into a jar file via fileoutputstream. It always gets corrupted in the process. The new Jar file has the exact same number of bytes, but doesn't get past the Manifest on a -tvf. In fact, Winzip can open it fine, but can't extract. So close...yet so far.
    Here is a snapshot of my code:
    BufferedInputStream data1=new BufferedInputStream(con.getInputStream());
    DataInputStream data=new DataInputStream(data1);
    StringBuffer buf=new StringBuffer();
    try{
    while((theChar=data.read()) != -1)
    { buf.append((char)theChar); }
    } catch (Exception z){ logger.info("UpdateThread.read Done Reading jar file");}
    data.close();
    File newFile = new File("C:/MyJar.jar");
    FileOutputStream outstream2 = new FileOutputStream(newFile);
    DataOutputStream outstream1 = new DataOutputStream(outstream2);
    BufferedOutputStream outstream = new BufferedOutputStream(outstream1);
    byte [] bytes = buf.toString().getBytes();
    logger.info("Bytes of new Jar file = " + bytes.length);
    int i;
    for(i=0;i<bytes.length;i++){
    outstream.write(bytes);
    outstream1.close();
    outstream.close();
    Any ideas where I'm going wrong?

  • I have my my original itunes on my old computer that doesnt accept CD's anymore. My new computer has some of the old songs and some new songs. How do I get all my old content on the new computer and still keep the new content?

    I have my my original itunes on my old computer that doesnt accept CD's anymore and My new computer has some of the old songs and some new songs. How do I get all my old content on the new computer and still keep the new content? I also have a few different ipods and I want to have all the songs on all of them but it wont let me. I have read millions of the help articles and still cant figure it out. When I plug one ipod in it says it is going to delete all the old info to sync and cant just add the songs? Frustrated please help!!

    Copy everything from the old computer or your backup copy of your old computer, to your new one.

Maybe you are looking for

  • How can I see my entire page when editing?

    When i edit my web page, the far right column is over shadowed by the middle column. so i can not see any of my text in the rows of that column unless i shrink the middle column there is no scroll at the bottom. so is there a way to view the entire p

  • Audio Queue Help

    Hi! Using sample code as a base, I've been able to get .wav and .mp3 files playing on the iPhone I'm using a simple AudioQueueCallback that uses AudioFileReadPackets to read audio packets and add them to the AudioQueue buffer using AudioQueueEnqueueB

  • Invoice reduction in MIRO

    Dear Gurus, While I am doing MIRO & using option Correction ID for reducing invoice amount, system is not considering Excise duty for final invoice value.  Tax i.e. CST/LST/VAT is getting calculated. Please suggest why it is not selecting excise comp

  • Mapping error ns instead of ns0

    hi, when i look at my payload coming from file adapter isee this : <ns:Delivery_MT xmlns:ns="urn: .... I don't get the ns0 in the begining and my mapping does ot work why ???

  • Only "Inbox" shows in OS 10.4.10 server for Outlook clients

    Connect via IMAP. Setup was previously working. Any ideas? Thanks