Function fileFolderExists(strFullPath as String) as Boolean
If Not Dir(strFullPath,vbDirectory)=vbNullString then
fileFolderExists=true
End If
End Function
设置图形跟随单元格移动
Sub SetShapeInfo()
Dim shape As shape
For Each shape In Activesheet.Shapes
shape.Placement=xlMoveAndSize
next
End Function
印刷范围的获取与设置
Sub PrintAreaInfo()
Dim printArea As String
printArea=ThisWorkbook.Range("Print_Area").Address
ThisWorkbook.PageSetup.printArea=<Adsress>
End Sub