C C J Nov 15, 2006 #1 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
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
D Dave Peterson Nov 15, 2006 #2 Use a macro that assigns the value to the second cell and clears contents of the original cell???
C C J Nov 15, 2006 #3 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
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
D Dave Peterson Nov 15, 2006 #4 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
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
D Dave Peterson Nov 15, 2006 #5 And add one more line before the "End Sub" line: fromcell.clearcontents
C C J Nov 17, 2006 #6 Thanks so much for your help. CJ Dave Peterson said: And add one more line before the "End Sub" line: fromcell.clearcontents Click to expand...
Thanks so much for your help. CJ Dave Peterson said: And add one more line before the "End Sub" line: fromcell.clearcontents Click to expand...