Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
workbook name
Hi,
is it possible to automatically name workbooks so that it gets its name from ie. shell A1? Workbook is saved to prevent unwanted actions but still users would need to name each workbook. |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
workbook name
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean) If SaveAsUI Then Cancel = True ThisWorkbook.SaveAs = Worksheets("Sheet1").Range("A1").Value End If End Sub 'This is workbook event code. 'To input this code, right click on the Excel icon on the worksheet '(or next to the File menu if you maximise your workbooks), 'select View Code from the menu, and paste the code -- HTH Bob Phillips (remove xxx from email address if mailing direct) "Tuukka" wrote in message ... Hi, is it possible to automatically name workbooks so that it gets its name from ie. shell A1? Workbook is saved to prevent unwanted actions but still users would need to name each workbook. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
excel exits unexpectedly or hangs the second time I open workbook | Excel Discussion (Misc queries) | |||
Repost:Automatically inserting a row in external workbook | Excel Discussion (Misc queries) | |||
keeping a toolbar attached to a workbook | Excel Discussion (Misc queries) | |||
Find a value in a workbook and return the worksheet name | Excel Discussion (Misc queries) | |||
How to hyperlink from a workbook to sheets in another workbook? | Excel Worksheet Functions |