Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 389
Default starting a function will not allow comm_button

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default starting a function will not allow comm_button

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting a macro with the IF function THW Excel Worksheet Functions 4 June 19th 05 05:40 PM
NETWORKDAY function problem - starting on weekends [email protected] Excel Discussion (Misc queries) 5 June 16th 05 10:55 PM
Calling a function without starting with "Personal!" Tom Ogilvy Excel Programming 0 June 18th 04 03:45 PM
Starting over TyeJae[_15_] Excel Programming 9 June 17th 04 02:23 AM
Starting a userform upon starting the file Fritznel Excel Programming 1 July 28th 03 05:37 AM


All times are GMT +1. The time now is 01:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"