Dear experts please suggest how to convert bunch of openoffice clac ods formats in a folder i want to convert ods to xlsx format
here i am sharing one the web resource, while execute the code it will shows error message. please solve this query... Thanks & Regards´¨) ¸ •´ ¸.•*´¨) ¸.•*¨) (¸.•´ (¸.•* ♥♥♥...♪♪♪....RenukaChari. Kasee...♥♥♥...♪♪♪ P Let us do our best to save nature, save water, plant trees, protect greenery, keep our surroundings clean, reduce usage of plastics, and use renewable energy sources. -- Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups "MS EXCEL AND VBA MACROS" group. To unsubscribe from this group and stop receiving emails from it, send an email to excel-macros+unsubscr...@googlegroups.com. To post to this group, send email to excel-macros@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros. For more options, visit https://groups.google.com/d/optout.
Sub SaveODSToXLSX() Dim StrFilename As String Dim StrDocName As String Dim StrPath As String Dim oWorkbook As Workbook Dim fDialog As FileDialog Dim intPos As Integer MsgBox "Please select the folder which contains the files for convert", , "" Set fDialog = Application.FileGialog(msoFileDialogFolderPicker) With fDialog .Title = "Select folder and click OK" .AllowMultiSelect = False .InitialView = msoFileDialogViewList If .Show <> -1 Then MsgBox "Cancelled By User", , "List Folder Contents" Exit Sub End If StrPath = fDialog.SelectedItems.Item(1) If Right (StrPath, 1) <> "\" Then StrPath = StrPath + "\" End With If Left (StrPath, 1) = Chr(34) Then StrPath = Mid (StrPath, 2, Len(StrPath) - 2) End If StrFilename = Dir$(StrPath & "*.ods") While Len(StrFilename <> 0) Set oWorkbook = Workbooks.Open(StrPath & StrFilename) StrDocname = ActiveWorkbook.Fullname intPos = InStrRev(StrDocName, ".") StrFocName = Left(StrDocName, intPos - 1) StrDocName = StrDocName & ".xlsx" oWorkbook.SaveAs Filename:=StrDocName, FileFormat:=51 oWorkbook.Close savechanges:=wdDoNotSaveChanges StrFilename = Dir$() Wend MsgBox "Conversion is completed", , "ODS to XLSX" Exit Sub End Sub