Tag: openoffice basic

写入文本时删除换行符

这个简单的macros将文本“ABC”写入E:驱动器下的文件temp.txt中。 但是如果我们打开这个文本文件,注意到在C之后有一个新的行字符。我们怎样才能摆脱这个,所以它会在C 码: Sub ExamplePrint i = FreeFile() Open "e:\Temp.txt" For Output As i Print #i, "ABC" Close #i end Sub 如果我们给这样的vba,换行符不会来。 但是在openoffice中,整个文本文件都是空的 码: Print #i, "ABC";

如何将Excel VBA移植到OpenOffice基础?

如何将Excel VBAmacros移植到OpenOffice基本macros? 这里是每5秒刷新一次的macros。 Private Sub Workbook_Open() ' Written in ThisWorkbook Call RefreshTime End Sub Sub RefreshTime() ' Written in a module Application.ScreenUpdating = False ActiveWorkbook.RefreshAll Application.OnTime Now + TimeValue("00:00:05"), "RefreshTime" Range("B10").Value = "My Current Time of the System:" Range("C10").Value = Format(Now, "hh:mm:ss AM/PM") Beep Application.ScreenUpdating = True End Sub 我试着将这个macros转换成OpenOfficemacros(使用http://www.business-spreadsheets.com/vba2oo.asp ) Private Sub Workbook_Open() ' […]