ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

Ãö©ó °ÆÀɦW xlsm (§t¥¨¶°) ¥t¦s xlsx (µL¥¨¶°)

¥i¥H¸Õ¸Õ¤U¦C¤èªk

Public Sub ¥t¦s·sÀÉ()
Dim myPath, myName, MyStr As String
Dim s As Integer
myPath = ActiveWorkbook.Path & "\"
myName = ActiveWorkbook.Name
s = Len(myName) - InStr(1, myName, ".") - 1
MyStr = VBA.Mid(myName, 1, s) '¥h±¼ªþÀɦW
ActiveWorkbook.Save
ActiveWorkbook.SaveAs Filename:=myPath & MyStr & ".xlsx", FileFormat:= _
        xlOpenXMLWorkbook, CreateBackup:=False
ActiveWorkbook.SaveAs Filename:=myPath & MyStr & ".xls", FileFormat:= _
        xlExcel8, CreateBackup:=False
End Sub

TOP

        ÀR«ä¦Û¦b : ¥Í®ð¡A´N¬O®³§O¤Hªº¹L¿ù¨ÓÃg»@¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD