ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Setting up and Configuration of Excel (https://www.excelbanter.com/setting-up-configuration-excel/)
-   -   Help with a Macro (https://www.excelbanter.com/setting-up-configuration-excel/446026-help-macro.html)

Helpmacro

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.

Gord Dibben[_2_]

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.



All times are GMT +1. The time now is 04:51 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com