Moving a selected cell

  • Thread starter Thread starter C J
  • Start date Start date
C

C J

Without using Cut/Paste or Drag, is there another way to move the contents
of a selected cell to another cell on a worksheet?
Thanks
CJ
 
Use a macro that assigns the value to the second cell and clears contents of the
original cell???
 
Dave thank you for your reply. I am somewhat new with Excel and do not know
how to setup macro. Would you give me the steps for this situation?
CJ
 
Option Explicit
Sub testme01()

dim FromCell as range
dim ToCell as range

with worksheets("sheet9999")
set fromcell = .range("a1")
end with

with worksheets("sheet8888")
set tocell = .range("x999")
end with

tocell.value = fromcell.value
'and maybe
tocell.numberformat = fromcell.numberformat

End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm
 
And add one more line before the "End Sub" line:

fromcell.clearcontents
 

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