Save a Worksheet using VBA with more then 255 Characters
The following code copies a worksheet and saves it into a folder.
Unfortunately, I need to get around the cell 255 Character Limit.
Is there a way to get around this?
Thanks for any help…
JimS
Code:
Public Sub Export2()
' Creates the DM Report File and saves it in the Tracking folder
Dim wb As Workbook
Dim wb2 As Workbook
Dim ws As Worksheet
Dim MyDir As String
Dim MyFile As String
Dim DTAddress As String
Dim newFile As String, fName As String
fName = Range("SaveName").Value
newFile = fName
Const FLDR_NAME As String = "C:\Data\Tracking\"
With Application
.DisplayAlerts = False
.ScreenUpdating = False
End With
Set wb = ThisWorkbook
Set ws = Sheets("DM Report")
Sheets("DM Report").Select
Set wb2 = Workbooks.Add
ws.Copy Before:=wb2.Sheets(1)
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs FLDR_NAME & (fName) & ".xls"
ActiveWorkbook.Close
Application.DisplayAlerts = True
Sheets("DM Report").Select
With Application
.DisplayAlerts = True
.ScreenUpdating = True
End With
End Sub