AnthonyMinnaar
New Member
- Joined
- Aug 25, 2020
- Messages
- 28
- Office Version
- 2013
- Platform
- Windows
Hi folks,
When I run the VBA code as seen below, it adds extra quotation marks in the output. It just needs to be "TNC:\ANTHONY\NLP.D". Now I'm not too sure if it is the code that is adding these extra quotation marks, or just a setting in the cellvalue itself. Has anyone got any ideas how to get rid of these?
Your help is very much appreciated!
When I run the VBA code as seen below, it adds extra quotation marks in the output. It just needs to be "TNC:\ANTHONY\NLP.D". Now I'm not too sure if it is the code that is adding these extra quotation marks, or just a setting in the cellvalue itself. Has anyone got any ideas how to get rid of these?
Your help is very much appreciated!
VBA Code:
Sub POSTB()
Sheets("PGM").Select
Columns.EntireColumn.Hidden = False
Rows.EntireRow.Hidden = False
For Each c In Range("A1:A115")
If c.Value = "" Then
c.EntireRow.Hidden = True
Else
c.EntireRow.Hidden = False
End If
Next
Dim wb As Workbook
Dim saveFile As String
Dim WorkRng As Range
On Error Resume Next
Set WorkRng = Worksheets("PGM").Range("A1:G115")
Application.ScreenUpdating = False
Application.DisplayAlerts = False
Set wb = Application.Workbooks.Add
WorkRng.SpecialCells(xlCellTypeVisible).Copy
wb.Worksheets(1).Paste
saveFile = Application.GetSaveAsFilename(fileFilter:="H (*.H), *.H")
wb.SaveAs Filename:=saveFile, FileFormat:=xlText, CreateBackup:=False
wb.Close
Application.CutCopyMode = False
Application.DisplayAlerts = True
Application.ScreenUpdating = True
Sheets("ZWALUW").Select
End Sub
Attachments
Last edited by a moderator: