OK I'm sure this is very easy.
I want to open an excel workbook and export data from a query to a new worksheet.
I have been able to work out how to add a new worksheet to the workbook but can not work out how to name the worksheet.
----------------------------------------
ActiveWorkbook.Sheets.Add Before:=Worksheets(Worksheets.Count)
Thanks in advance
Some people make things happen, some watch while things happen, and some wonder 'What happened?'
I want to open an excel workbook and export data from a query to a new worksheet.
I have been able to work out how to add a new worksheet to the workbook but can not work out how to name the worksheet.
----------------------------------------
ActiveWorkbook.Sheets.Add Before:=Worksheets(Worksheets.Count)
Thanks in advance
Some people make things happen, some watch while things happen, and some wonder 'What happened?'