DocCon
ISP
- Oct 30, 2002
- 5
Hi
I have a basic knowledge of excel. I have a form that has a name setup button on the tool bar that starts a edit box Macro. What I would like to know if it is possable to return a value in the edit box from the active workbook if the value = true. Below is sample. Thanks for any help.
' Top of Module
' dialogname Macro
' Opens the NameDlog Dialog sheet for user input of customer name, code,
' phone, address, and statement date.
'
'CHANGE HISTORY:
' <date> <author> <description>.
Sub dialogname()
Application.ScreenUpdating = False
' Windows("TESTCODE.XLS".Activate
' ActiveWindow.Visible = False
Workbooks("TEST.XLS".DialogSheets("NameDlog".Show
End Sub
'
' nameok Macro
' On click of OK button, the user inputed information is transferred
' from the appropriate edit boxes to the appropriate cell references
' on the appropriate sheets.
'
'CHANGE HISTORY:
' <date> <author> <description>.
Sub nameok()
'Hide updates from user
Application.Cursor = xlWait
Application.ScreenUpdating = False
Application.ScreenUpdating = False
' Edit Box5_Change Macro
CustName = Workbooks("TESTCODE.XLS".DialogSheets("NameDlog".EditBoxes(1).Text
Application.Sheets("FIN STMT".Activate
ActiveSheet.Unprotect
Range("A2".Value = CustName
I have a basic knowledge of excel. I have a form that has a name setup button on the tool bar that starts a edit box Macro. What I would like to know if it is possable to return a value in the edit box from the active workbook if the value = true. Below is sample. Thanks for any help.
' Top of Module
' dialogname Macro
' Opens the NameDlog Dialog sheet for user input of customer name, code,
' phone, address, and statement date.
'
'CHANGE HISTORY:
' <date> <author> <description>.
Sub dialogname()
Application.ScreenUpdating = False
' Windows("TESTCODE.XLS".Activate
' ActiveWindow.Visible = False
Workbooks("TEST.XLS".DialogSheets("NameDlog".Show
End Sub
'
' nameok Macro
' On click of OK button, the user inputed information is transferred
' from the appropriate edit boxes to the appropriate cell references
' on the appropriate sheets.
'
'CHANGE HISTORY:
' <date> <author> <description>.
Sub nameok()
'Hide updates from user
Application.Cursor = xlWait
Application.ScreenUpdating = False
Application.ScreenUpdating = False
' Edit Box5_Change Macro
CustName = Workbooks("TESTCODE.XLS".DialogSheets("NameDlog".EditBoxes(1).Text
Application.Sheets("FIN STMT".Activate
ActiveSheet.Unprotect
Range("A2".Value = CustName