Hi can anyone help me with this..
I need to select all the data from the ALL_QUESTIONS_NONCRUISE.xls workbook (the tab is also called ALL_QUESTIONS_NONCRUISE), and then paste it into my current workbook (dont want to type the name of the file the macro is in as it changes every week with the date.. hense why I am trying the ThisWorkBook function.
Anyway, something I'm doing isn't working. When I run the macro I get the red X and 400 message.
Please help
I need to select all the data from the ALL_QUESTIONS_NONCRUISE.xls workbook (the tab is also called ALL_QUESTIONS_NONCRUISE), and then paste it into my current workbook (dont want to type the name of the file the macro is in as it changes every week with the date.. hense why I am trying the ThisWorkBook function.
Anyway, something I'm doing isn't working. When I run the macro I get the red X and 400 message.
Please help
Code:
Sub uzzzzz()
'
' update Macro
'
'
Application.ScreenUpdating = False
Application.DisplayAlerts = False
Workbooks.Open Filename:= _
"S:\DatabaseMarketing\CSQs\Reporting\Data files\ALL_QUESTIONS_NONCRUISE.xls"
Cells.Select
Selection.Copy
ThisWorkbook.Activate
Sheets("CSQData").Select
Range("A1").Select
ActiveSheet.Paste
Windows("ALL_QUESTIONS_NONCRUISE.xls").Activate
ActiveWindow.Close
Sheets("CSQ Scores").Select
ActiveSheet.PivotTables("PivotTable1").PivotCache.Refresh
Application.ScreenUpdating = True
Application.DisplayAlerts = True
End Sub