Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Change the start of a workbook
Hi!!
I have this Private Sub Workbook_open() copy GetData_Example1 Priser.Show End Sub Now i save my file as a new file and when i do that i don't want to have "copy" and "GetData_Example1" in the new workbook So in my new workbook there shall only stay Private Sub Workbook_open() Priser.Show End Sub Hope someone can help maybe with a macro there can delete the lines i havn't use for Best regards alvin |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Change the start of a workbook
"Alvin Hansen" wrote in message
... Hi!! I have this Private Sub Workbook_open() copy GetData_Example1 Priser.Show End Sub Now i save my file as a new file and when i do that i don't want to have "copy" and "GetData_Example1" in the new workbook So in my new workbook there shall only stay Private Sub Workbook_open() Priser.Show End Sub Hope someone can help maybe with a macro there can delete the lines i havn't use for Best regards alvin Try this Private Sub Workbook_open() If ActiveWorkbook.Name = "Original File.xls" Then copy GetData_Example1 Else End If Priser.Show End Sub Ian |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Change the start of a workbook
Yes yes yes
Thanks alvin "IC" skrev: "Alvin Hansen" wrote in message ... Hi!! I have this Private Sub Workbook_open() copy GetData_Example1 Priser.Show End Sub Now i save my file as a new file and when i do that i don't want to have "copy" and "GetData_Example1" in the new workbook So in my new workbook there shall only stay Private Sub Workbook_open() Priser.Show End Sub Hope someone can help maybe with a macro there can delete the lines i havn't use for Best regards alvin Try this Private Sub Workbook_open() If ActiveWorkbook.Name = "Original File.xls" Then copy GetData_Example1 Else End If Priser.Show End Sub Ian |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Can you change a horizontal bar chart to start at the right | Charts and Charting in Excel | |||
Start up workbook | Setting up and Configuration of Excel | |||
To change the application to start if i run a hyperlink | Excel Worksheet Functions | |||
Excel workbook is corrupted, workbook automatically saves on start | Excel Discussion (Misc queries) | |||
Start macro on cell change | Excel Programming |