Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Activate macro1



I Have this template the fills up a deposit slip and the only thing that i have to do is fill up the amount in cell S7 and then press enter to go to cell S8

Is there a way to activate macro1
when i hit enter to go to next cell wich is S8

Thanks in advance

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Activate macro1

Not exactly, but you can trigger a macro any time you go to cell S8 (either
via mouse or keyboard) using the Worksheet_SelectionChange event.

Put the following code in the sheet module:

Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$S$8" Then Macro1
End Sub

Macro1 should be in a standard module and not designated as Private.

--

Vasant

"IRMA MENDOSA" wrote in message
...


I Have this template the fills up a deposit slip and the only thing that i
have to do is fill up the amount in cell S7 and then press enter to go to
cell S8

Is there a way to activate macro1
when i hit enter to go to next cell wich is S8

Thanks in advance


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Activate macro1

You can get Excel to do this for you.

Go to ToolsOptionsEdit and check the Move selection after Enter box, and
choose your direction.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Vasant Nanavati" <vasantn *AT* aol *DOT* com wrote in message
...
Not exactly, but you can trigger a macro any time you go to cell S8

(either
via mouse or keyboard) using the Worksheet_SelectionChange event.

Put the following code in the sheet module:

Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$S$8" Then Macro1
End Sub

Macro1 should be in a standard module and not designated as Private.

--

Vasant

"IRMA MENDOSA" wrote in message
...


I Have this template the fills up a deposit slip and the only thing that i
have to do is fill up the amount in cell S7 and then press enter to go to
cell S8

Is there a way to activate macro1
when i hit enter to go to next cell wich is S8

Thanks in advance




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
App activate issue sunspot27 Excel Worksheet Functions 0 July 27th 09 11:42 AM
Can't activate an add-ins Ivan Setting up and Configuration of Excel 0 June 5th 08 09:33 AM
If sheet name contains 'A' run macro1, if 'B' run macro 2? Dr Dan[_2_] Excel Discussion (Misc queries) 6 February 23rd 07 05:18 PM
When to Activate? Antonio Excel Discussion (Misc queries) 5 June 8th 06 12:26 AM
Activate event Lynn[_3_] Excel Programming 2 September 13th 03 09:30 PM


All times are GMT +1. The time now is 03:34 PM.

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

About Us

"It's about Microsoft Excel"