#1   Report Post  
Junior Member
 
Posts: 1
Default Help with a Macro

Hi,

Currently looking for a simple macro that will type the number 1 and shift down a cell and continue to do so each time the macro is pressed, hoping this is possible sorry if it is not, relatively new to Excel and macros.

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 621
Default Help with a Macro

Sub enter_one()
With ActiveCell
.Value = 1
.Offset(1,0).Select
End With
End Sub

But wouldn't it be just as easy to type 1 then ENTER?

There must be more to this than what you describe.


Gord

On Thu, 10 May 2012 09:30:27 +0000, Helpmacro
wrote:


Hi,

Currently looking for a simple macro that will type the number 1 and
shift down a cell and continue to do so each time the macro is pressed,
hoping this is possible sorry if it is not, relatively new to Excel and
macros.

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
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
Macro not showing in Tools/Macro/Macros yet show up when I goto VBA editor [email protected] Excel Programming 2 March 30th 07 07:48 PM
Need syntax for RUNning a Word macro with an argument, called from an Excel macro Steve[_84_] Excel Programming 3 July 6th 06 07:42 PM
macro to delete entire rows when column A is blank ...a quick macro vikram Excel Programming 4 May 3rd 04 08:45 PM
Start Macro / Stop Macro / Restart Macro Pete[_13_] Excel Programming 2 November 21st 03 06:04 PM


All times are GMT +1. The time now is 10:13 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"