I have excel workbook with 10 sheets , I want to export range "B17:H28" from each sheet into one csv file not multiple csv files .I have code which exports each sheet with range into multiple csv files.
For Each sh In ActiveWorkbook.Sheets
Set rngtemp = Sheet.Range("B17:H28")
rngtemp.Copy
csvfilenametemp= ....
Set wbtemp = Application.Workbooks.Add(1)
With wbtemp
.Sheets(1).Range("A1").PasteSpecial xlPasteValues
.SaveAs Filename:=csvfilenametemp, FileFormat:=xlCSV, CreateBackup:=False
.Close
End With