+ Reply to Thread
Results 1 to 9 of 9

I want to copy the contents of the cell above to the active cell below

  1. #1
    Forum Contributor
    Join Date
    03-28-2012
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2010
    Posts
    166

    I want to copy the contents of the cell above to the active cell below

    Hello,

    I would like to copy what's in the range of cells above (F3:E46) to the active cell below. What am I doing wrong? Here is the code I used;
    Please Login or Register  to view this content.
    Thanks,

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,355

    Re: I want to copy the contents of the cell above to the active cell below

    You need something after the <> in the statement of:
    Please Login or Register  to view this content.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    03-28-2012
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2010
    Posts
    166

    Re: I want to copy the contents of the cell above to the active cell below

    What would that be? I am drawing a blank.

  4. #4
    Registered User
    Join Date
    03-30-2015
    Location
    Barbados
    MS-Off Ver
    2013
    Posts
    4

    Re: I want to copy the contents of the cell above to the active cell below

    You should try avoiding selecting cells you are copying if you know the range because the active cell will be the cells selected. Why not try an approach like this:
    Range("F3:E46").Offset(-1, 0).Copy
    ActiveCell.PasteSpecial (xlPasteValues)
    Feel free to visit my store at www.ebdapps.com

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: I want to copy the contents of the cell above to the active cell below

    Maybe?

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    03-28-2012
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2010
    Posts
    166

    Re: I want to copy the contents of the cell above to the active cell below

    Well, I have given the above code a whirl in the included spreadsheet, but it did not do what I wanted it to. So, if I you look at E10:F10, if I want to copy what is in these cells to E11:F11 instead of wasting the key strokes what must I do?


    Thanks!

    LeapingLizard
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: I want to copy the contents of the cell above to the active cell below

    Maybe?

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    03-28-2012
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2010
    Posts
    166

    Re: I want to copy the contents of the cell above to the active cell below(Solved)

    Beautiful! Thanks John!

  9. #9
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: I want to copy the contents of the cell above to the active cell below

    You're welcome. Glad to help out and thanks for the feedback. Please mark this thread as SOLVED if that takes care of your problem.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. macro to copy cell contents then remove substring of contents in new cell - Help
    By three_jeeps in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-25-2015, 01:19 AM
  2. Replies: 5
    Last Post: 01-29-2015, 05:44 AM
  3. Need a macro to add 1 to active cell based on previous cell contents
    By wtom in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-20-2014, 12:16 AM
  4. Macro to paste in the active cell the contents of a cell from another file??
    By LarryB in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-12-2006, 01:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1