SpeedyKevin
New Member
- Joined
- Apr 26, 2019
- Messages
- 17
Hello all!
I'm trying to write certain cells to a text file. What I have it doing is allowing me to type in the name to which a folder and file will be created. The file naming works and folder is created but I can't seem to get the bolded part to work. Any suggestions? Thanks!
Sheets("OVERALL_CLIPS").Select
wName = InputBox("Enter file name")
If wName = "" Then Exit Sub
If Len(Dir(CurDir & "\Stoplight_Feedback" & wName, vbDirectory)) = 0 Then
MkDir CurDir & "\Stoplight_Feedback" & wName
End If
WriteRangeToTextFile Range("D6:D8"), "Stoplight_Feedback\(wName)" & (wName & "-VC1.m3u8"), vbTab
I'm trying to write certain cells to a text file. What I have it doing is allowing me to type in the name to which a folder and file will be created. The file naming works and folder is created but I can't seem to get the bolded part to work. Any suggestions? Thanks!
Sheets("OVERALL_CLIPS").Select
wName = InputBox("Enter file name")
If wName = "" Then Exit Sub
If Len(Dir(CurDir & "\Stoplight_Feedback" & wName, vbDirectory)) = 0 Then
MkDir CurDir & "\Stoplight_Feedback" & wName
End If
WriteRangeToTextFile Range("D6:D8"), "Stoplight_Feedback\(wName)" & (wName & "-VC1.m3u8"), vbTab