Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / November 2006

Tip: Looking for answers? Try searching our database.

Moving a selected cell

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
C J - 15 Nov 2006 02:14 GMT
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
Dave Peterson - 15 Nov 2006 03:01 GMT
Use a macro that assigns the value to the second cell and clears contents of the
original cell???

> 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

Signature

Dave Peterson

C J - 15 Nov 2006 22:41 GMT
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
> Use a macro that assigns the value to the second cell and clears contents
> of the
[quoted text clipped - 5 lines]
>> Thanks
>> CJ
Dave Peterson - 15 Nov 2006 22:54 GMT
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

> 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?
[quoted text clipped - 12 lines]
> >
> > Dave Peterson

Signature

Dave Peterson

Dave Peterson - 15 Nov 2006 22:59 GMT
And add one more line before the "End Sub" line:

fromcell.clearcontents

> Option Explicit
> Sub testme01()
[quoted text clipped - 39 lines]
>
> Dave Peterson

Signature

Dave Peterson

C J - 17 Nov 2006 20:02 GMT
Thanks so much for your help.
CJ
> And add one more line before the "End Sub" line:
>
[quoted text clipped - 45 lines]
>>
>> Dave Peterson
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.