PC Review


Reply
Thread Tools Rate Thread

Copy from cell above

 
 
Patrick C. Simonds
Guest
Posts: n/a
 
      23rd Jan 2008
I know that "Selection.End(xlToLeft).Select" will select the first cell
in the current row. What would it take to then copy the contents of the cell
above into the active cell and then select the cell (in the current row) in
column X

 
Reply With Quote
 
 
 
 
Gary Keramidas
Guest
Posts: n/a
 
      23rd Jan 2008
if i'm understanding what you want, maybe this:

activecell.value = activecell.Offset(-1).value

--


Gary


"Patrick C. Simonds" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I know that "Selection.End(xlToLeft).Select" will select the first cell in
>the current row. What would it take to then copy the contents of the cell above
>into the active cell and then select the cell (in the current row) in column X



 
Reply With Quote
 
Patrick C. Simonds
Guest
Posts: n/a
 
      23rd Jan 2008
Thank you, almost there.

Now I need it to then select the cell (in the current row) in column X

"Gary Keramidas" <GKeramidasATmsn.com> wrote in message
news:(E-Mail Removed)...
> if i'm understanding what you want, maybe this:
>
> activecell.value = activecell.Offset(-1).value
>
> --
>
>
> Gary
>
>
> "Patrick C. Simonds" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>I know that "Selection.End(xlToLeft).Select" will select the first cell
>>in the current row. What would it take to then copy the contents of the
>>cell above into the active cell and then select the cell (in the current
>>row) in column X

>
>


 
Reply With Quote
 
Gary Keramidas
Guest
Posts: n/a
 
      23rd Jan 2008
if you really mean column "X", then:

cells(activecell.row,"X").select

--


Gary


"Patrick C. Simonds" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thank you, almost there.
>
> Now I need it to then select the cell (in the current row) in column X
>
> "Gary Keramidas" <GKeramidasATmsn.com> wrote in message
> news:(E-Mail Removed)...
>> if i'm understanding what you want, maybe this:
>>
>> activecell.value = activecell.Offset(-1).value
>>
>> --
>>
>>
>> Gary
>>
>>
>> "Patrick C. Simonds" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>>I know that "Selection.End(xlToLeft).Select" will select the first cell in
>>>the current row. What would it take to then copy the contents of the cell
>>>above into the active cell and then select the cell (in the current row) in
>>>column X

>>
>>

>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Options Yuvraj Microsoft Excel Misc 0 29th Jun 2009 11:20 AM
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Yuvraj Microsoft Excel Misc 0 26th Jun 2009 06:01 PM
How can I copy a value from a cell and paste it into another cell while adding it to the previous value in that cell suyash.nathani@gmail.com Microsoft Excel Worksheet Functions 2 7th Nov 2007 09:39 AM
I copy a formula and the results copy from the original cell =?Utf-8?B?YnJvb2tseW5zZA==?= Microsoft Excel Misc 1 23rd Jun 2007 01:35 AM
If cell in a Col of doc1is = to cell in a Col in doc2, copy cell . =?Utf-8?B?RERD?= Microsoft Excel New Users 2 6th Oct 2004 12:30 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:16 AM.