简体   繁体   中英

Excel to tsv automatic updation

Is there any scrips or tooling that could convert all the excel changes / editions dynamically into the tsv file ? My requirement is to make the changes done in the excel sheet to get reflected on to the tsv file of the same dynamically, the moment we save the excel sheet, its tsv should be edited and should contained the modification.

Thanks in advance guys!!

This VBA macro is based on work over at Mr. Excel but extended to save in two formats at once.

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)

' break the save
Cancel = True

' perform the save wourself
Application.EnableEvents = False
Me.SaveAs Filename:="c:\tmp\x.xlsm", _
        FileFormat:=xlOpenXMLWorkbookMacroEnabled, CreateBackup:=False
Application.EnableEvents = True

' do something after the save

Me.SaveAs Filename:="c:\tmp\x.tsv", _
        FileFormat:=xlCurrentPlatformText, CreateBackup:=False    
MsgBox "Workbook is saved in xlsm and tsv"    

End Sub

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM