Macro for last action

  • Thread starter Thread starter Steved
  • Start date Start date
S

Steved

Hello from Steved

If I type 4247 in cell A10
Is it possible please to have a macro that will
copy and when I goto Cell A17 it will paste.

Thankyou.
 
Steved,

In a regular module, put this:

Public Savit
Sub MyPaste()
ActiveCell = Savit
End Sub

In the sheet module, put this:

Private Sub Worksheet_Change(ByVal Target As Range)
Savit = Target ' get last thing entered into cell
End Sub

YOu may want to set up a button, or a keyboard shortcut to run MyPaste.
Tools - Macro - Macros - Select MyPaste - Options - Shortcut key.
 
Thankyou Earl
-----Original Message-----
Steved,

In a regular module, put this:

Public Savit
Sub MyPaste()
ActiveCell = Savit
End Sub

In the sheet module, put this:

Private Sub Worksheet_Change(ByVal Target As Range)
Savit = Target ' get last thing entered into cell
End Sub

YOu may want to set up a button, or a keyboard shortcut to run MyPaste.
Tools - Macro - Macros - Select MyPaste - Options - Shortcut key.
--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------




.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top