A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Macro Problem



 
 
Thread Tools Display Modes
  #1  
Old March 28th, 2010, 02:39 AM posted to microsoft.public.excel.newusers
DiscipleTom
external usenet poster
 
Posts: 10
Default Macro Problem

I'm created a simple macro to enter the current date and time =NOW(). That
works with the macro...however, I can't get it to stop moving over to the
next column and
returning to the top of that column. I've tried recording =NOW() ENTER;
=NOW() TAB; =NOW() RIGHT ARROW. all seem determined to move to the next
column top. What am I missing?
  #2  
Old March 28th, 2010, 03:27 AM posted to microsoft.public.excel.newusers
FSt1
external usenet poster
 
Posts: 2,788
Default Macro Problem

hi
we are not going to know until you post your code that is doing it.

regards
FSt1

"DiscipleTom" wrote:

I'm created a simple macro to enter the current date and time =NOW(). That
works with the macro...however, I can't get it to stop moving over to the
next column and
returning to the top of that column. I've tried recording =NOW() ENTER;
=NOW() TAB; =NOW() RIGHT ARROW. all seem determined to move to the next
column top. What am I missing?

  #3  
Old March 28th, 2010, 05:27 AM posted to microsoft.public.excel.newusers
DiscipleTom
external usenet poster
 
Posts: 10
Default Macro Problem

OK...Here it is:

Sub DateTime()
'
' DateTime Macro
' Enter Date and Time
'
' Keyboard Shortcut: Ctrl+d
'
ActiveCell.FormulaR1C1 = "=NOW()"
Range("A3").Select
End Sub

The A3 Cell is where the cursor ends up...At the end of entering the macro,
the "stop macro" button is grayed out and I have to press enter to get it
back.

the desired result is to enter the date and time and then move to the cell
on the right to continue entering data.

Thanks for helping.

"FSt1" wrote:

hi
we are not going to know until you post your code that is doing it.

regards
FSt1

"DiscipleTom" wrote:

I'm created a simple macro to enter the current date and time =NOW(). That
works with the macro...however, I can't get it to stop moving over to the
next column and
returning to the top of that column. I've tried recording =NOW() ENTER;
=NOW() TAB; =NOW() RIGHT ARROW. all seem determined to move to the next
column top. What am I missing?

  #4  
Old March 28th, 2010, 10:10 AM posted to microsoft.public.excel.newusers
Roger Govier[_8_]
external usenet poster
 
Posts: 338
Default Macro Problem

Hi

Sub DateTime()
'
' DateTime Macro
' Enter Date and Time
'
' Keyboard Shortcut: Ctrl+d
'
ActiveCell.FormulaR1C1 = "=NOW()"
ActiveCell.Offset(0,1).Select

End Sub
--
Regards
Roger Govier

DiscipleTom wrote:
OK...Here it is:

Sub DateTime()
'
' DateTime Macro
' Enter Date and Time
'
' Keyboard Shortcut: Ctrl+d
'
ActiveCell.FormulaR1C1 = "=NOW()"
Range("A3").Select
End Sub

The A3 Cell is where the cursor ends up...At the end of entering the macro,
the "stop macro" button is grayed out and I have to press enter to get it
back.

the desired result is to enter the date and time and then move to the cell
on the right to continue entering data.

Thanks for helping.

"FSt1" wrote:

hi
we are not going to know until you post your code that is doing it.

regards
FSt1

"DiscipleTom" wrote:

I'm created a simple macro to enter the current date and time =NOW(). That
works with the macro...however, I can't get it to stop moving over to the
next column and
returning to the top of that column. I've tried recording =NOW() ENTER;
=NOW() TAB; =NOW() RIGHT ARROW. all seem determined to move to the next
column top. What am I missing?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:39 AM.


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