Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
When you start a function for example: =
you can select a different file using Window on the menu bar or the file icon on the task bar to select a cell in a different file. My question is ; is there a way to start the function for example with: = .... and then click a command button on the sheet where the code on the attched macro is to: Windows("ExcelFile").Activate and have it go to the window of the "ExcelFile" and then select the cell you want to reference and hit -Enter- and have it function properly. When I start with = it will basically lock the CommandButton on the sheet and therefore the macro does not run. Is there a way to make this work? Thank you, Steven |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The short answer is no. You cannot do what you describe. However, You can
use event code to call a macro when a certain cell is double clicked or right clicked, or the cell value is changed or a different cell is selected. See Chip Pearson's page: http://www.cpearson.com/excel/Events.aspx "Steven" wrote in message ... When you start a function for example: = you can select a different file using Window on the menu bar or the file icon on the task bar to select a cell in a different file. My question is ; is there a way to start the function for example with: = .... and then click a command button on the sheet where the code on the attched macro is to: Windows("ExcelFile").Activate and have it go to the window of the "ExcelFile" and then select the cell you want to reference and hit -Enter- and have it function properly. When I start with = it will basically lock the CommandButton on the sheet and therefore the macro does not run. Is there a way to make this work? Thank you, Steven |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Starting a macro with the IF function | Excel Worksheet Functions | |||
NETWORKDAY function problem - starting on weekends | Excel Discussion (Misc queries) | |||
Calling a function without starting with "Personal!" | Excel Programming | |||
Starting over | Excel Programming | |||
Starting a userform upon starting the file | Excel Programming |