Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Activating macro on enter.

Hello,

I have a macro that takes the criteria from a cell A1 of a sheet. Here i
enter the criteria in the cell and then Run the macro.
Is there a way by which I can make the macro run once I input the criteria
in cell A1 and perss Enter button?

Thanks,

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default Activating macro on enter.

here is what I suggest

1. go to Tools-Options-Edit and uncheck ENTER settings
2. right-click on worksheet tab and choose 'View code'
3. in a 2nd from right window you should see '(General)', select
Worksheet
4. select SelectionChange on the right

put the following code the

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
k = Target.Address
If k = "$A$1" And Target.Value = "abc" Then
Call 'my macro'
End If
End Sub

HIH

On 3 Cze, 12:07, Priya Gautam
wrote:
Hello,

I have a macro that takes the criteria from a cell A1 of a sheet. Here i
enter the criteria in the cell and then Run the macro.
Is there a way by which I can make the macro run once I input the criteria
in cell A1 and perss Enter button?

Thanks,

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm....mspx?mid=8cfe...


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Activating macro on enter.

Thank you Jarek!

"Jarek Kujawa" wrote:

here is what I suggest

1. go to Tools-Options-Edit and uncheck ENTER settings
2. right-click on worksheet tab and choose 'View code'
3. in a 2nd from right window you should see '(General)', select
Worksheet
4. select SelectionChange on the right

put the following code the

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
k = Target.Address
If k = "$A$1" And Target.Value = "abc" Then
Call 'my macro'
End If
End Sub

HIH

On 3 Cze, 12:07, Priya Gautam
wrote:
Hello,

I have a macro that takes the criteria from a cell A1 of a sheet. Here i
enter the criteria in the cell and then Run the macro.
Is there a way by which I can make the macro run once I input the criteria
in cell A1 and perss Enter button?

Thanks,

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm....mspx?mid=8cfe...



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
macro to enter zero into 240 ranges? Al Excel Discussion (Misc queries) 7 April 9th 08 07:30 PM
Macro to select cells in column enter data then press enter NP New Users to Excel 1 February 20th 08 04:21 PM
Activating a Macro d_kight New Users to Excel 5 June 30th 06 07:46 PM
Make macro run when I hit the enter key Tommy Excel Discussion (Misc queries) 1 May 16th 05 12:53 AM
enter a new value into a cell using macro in excel cath Excel Discussion (Misc queries) 2 April 12th 05 11:32 PM


All times are GMT +1. The time now is 09:03 AM.

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"