+ Reply to Thread
Results 1 to 5 of 5

Copy and paste 10 cells below selection

  1. #1
    Registered User
    Join Date
    12-17-2014
    Location
    London
    MS-Off Ver
    2007
    Posts
    7

    Copy and paste 10 cells below selection

    This is my current macro


    Sub MACRO2()

    Selection.Copy
    Range("B22").Select
    ActiveSheet.Paste

    For Each cell In Selection
    With cell
    If Application.WorksheetFunction.IsNumber(cell) Then
    .Value = .Value * 100
    .NumberFormat = "0"
    .Interior.Color = RGB(255, 255, 0)
    End If
    End With
    Next cell

    End Sub


    This pastes a selection to cell B22 and changes the percentages to whole numbers.

    Could someone please be kind enough to tell me how, instead of pasting to cell B22, I can get it to paste 10 cells below the current selection (and then carry out the conversion) ?

    Thanks very much

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Copy and paste 10 cells below selection

    Replace
    Please Login or Register  to view this content.
    with
    Please Login or Register  to view this content.
    If someone has helped you then please add to their Reputation

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,486

    Re: Copy and paste 10 cells below selection

    Not sure what you are doing, see if this helps
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    12-17-2014
    Location
    London
    MS-Off Ver
    2007
    Posts
    7

    Re: Copy and paste 10 cells below selection

    Quote Originally Posted by davesexcel View Post
    Not sure what you are doing, see if this helps
    Please Login or Register  to view this content.
    Thanks, this nearly works but changes the formatting of the original data rather than the new copied data (which is what I am after - sorry if not clear).

  5. #5
    Registered User
    Join Date
    12-17-2014
    Location
    London
    MS-Off Ver
    2007
    Posts
    7

    Re: Copy and paste 10 cells below selection

    Quote Originally Posted by davesexcel View Post
    Not sure what you are doing, see if this helps
    Please Login or Register  to view this content.
    Thanks, this nearly works but changes the formatting of the original data rather than the new copied data (which is what I am after - sorry if not clear).

+ 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. copy and paste multiple selection
    By chopstxnrice in forum Excel General
    Replies: 11
    Last Post: 04-09-2013, 08:57 AM
  2. [SOLVED] Selection copy and paste columns
    By Stonebirds in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-30-2012, 01:16 PM
  3. copy and paste multiple selection
    By Gareth in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-13-2010, 04:28 AM
  4. [SOLVED] Selection.Copy - ActiveSheet.Paste to blank cells
    By AFSSkier in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-20-2006, 02:20 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