Many times clients change the name of the Sheet within the Workbook of an Excel spreadsheet. Can R&D make the data mapper select the first sheet at all times via a checkbox? This would then cater for those using another sheet in the Workbook.
What would also be nice is to pass a Workflow variable to the Sheet dropdown list so that we can specify a sheet name that might change every month and not be the first sheet in the Workbook.
I use this to change the sheet name (in the Workflow) to match the data mapped name:
'launch Excel and open file
Set xlObj = CreateObject(âExcel.Applicationâ)
Set xlFile = xlObj.WorkBooks.Open(âc:\temp\filename.xlsâ)
'turn off screen alerts
xlObj.Application.DisplayAlerts = False
'loop through sheets
For Each Worksheet In xlFile.Worksheets
'change sheet to desired worksheet name
If Worksheet.Name = âSheetToRenameâ Then
Worksheet.Name = âNewNameâ
End If
'change all sheets to desired font
With Worksheet.Cells.Font
.Name = âVerdanaâ
.Size = 12
End With
Next
'save, close, then quit
xlFile.Close True
xlObj.Quit
I have a similar script saved to my âcheat sheetâ. A script I think you initially did. But as always I try to push non programming/scripting solutions to OL as not everyone is a programmer. The more user friendly Connect gets the better.