+ Reply to Thread
Results 1 to 4 of 4

Data selection works, paste option doesn't

Hybrid View

  1. #1
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Data selection works, paste option doesn't

    You are not far off.

    Try something like

    Sub moveit()
    '
    ' moveit Macro
    '
    Dim Move2Cat As String
        Move2Cat = Range("A5").Value
        Range("AA15:AW15").Copy
        Select Case Move2Cat
            Case Is = "Resisdental"
                Worksheets("Res.Contractors").Activate
            Case Is = "Commerical"
                Worksheets("Res.Contractors").Activate
            '..... add others here
        
        
        End Select
        Range("B" & Rows.Count).End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=False
        Sheets("Data Entry").Activate
        Range("C4:C26").ClearContents
        Range("C4").Select
        
    End Sub
    Martin

  2. #2
    Registered User
    Join Date
    03-18-2010
    Location
    Virginia, US
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Data selection works, paste option doesn't

    tigeravatar, your's hit spot on, good sir. Awesome. Exactly what I was trying to do. I noticed some new functions in there so you gave me some homework, too. Thank you very much.

    mrice, your's works well, too, but tiger's is compacted down real well and it'll help keep my file size down. This little project is getting rather big.

    Gentlemen, many thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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