Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Simple macro - help please!!

Hey,

How would I write a simple VBA macro to carry out the
following:

1 Select a cell
2 Double click it - or edit the contents (without making
any changes however)
3 move to cell directly below
4 Double click etc?

Cheers

Mick
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Simple macro - help please!!

Mick,

Right click on the sheet tab of the sheet that you want this to work on
and copy/paste the following:

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
ActiveCell.Offset(1, 0).Select
End Sub

The above will move to the cell below the selected cell on a double
click.

As for moving to the cell below after an edit, try:
Tools/Options/Edit
Check the box "Move Selection After Enter"
and select "Down"

John

Micheal wrote:

Hey,

How would I write a simple VBA macro to carry out the
following:

1 Select a cell
2 Double click it - or edit the contents (without making
any changes however)
3 move to cell directly below
4 Double click etc?

Cheers

Mick


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Simple macro - help please!!

Just Click on the record macro button, give it a name and then do what you
need, then click stop recording.

HTH

"Micheal" wrote in message
...
Hey,

How would I write a simple VBA macro to carry out the
following:

1 Select a cell
2 Double click it - or edit the contents (without making
any changes however)
3 move to cell directly below
4 Double click etc?

Cheers

Mick



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
help with a simple macro Roger Dodger Excel Discussion (Misc queries) 2 August 26th 11 04:26 AM
maybe it's simple with macro for this one? driller Excel Worksheet Functions 6 July 16th 07 05:12 PM
Simple macro please sasha New Users to Excel 1 July 19th 05 12:51 PM
Can't get simple macro to run Abi Excel Worksheet Functions 5 January 12th 05 07:37 PM
SIMPLE MACRO!!! Hugh Millen Excel Programming 5 August 23rd 03 04:27 PM


All times are GMT +1. The time now is 11:53 AM.

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"