• Copy & Paste Special Mutliply (Excel 2010)

    Home » Forums » AskWoody support » Productivity software by function » Visual Basic for Applications » Copy & Paste Special Mutliply (Excel 2010)

    • This topic has 2 replies, 3 voices, and was last updated 11 years ago.
    Author
    Topic
    #494634

    Hello,

    I’m trying to write a bit of code that would simply multiply a range by -1 WITHOUT having to actually put the “-1” in the Excel worksheet in cell AA1. How can I just define the “-1” as a value or integer in the code, then “copy” the “-1” so the last two lines of code will work (in other words so the copy pastespecial multiply will work).

    Thanks so much!
    Lana

    Range(“AA1”) = “-1”

    Range(“AA1”).Select
    Selection.Copy

    Range(“E2:E” & Cells(Rows.Count, 1).End(xlUp).Row).Select
    Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlMultiply

    Viewing 1 reply thread
    Author
    Replies
    Viewing 1 reply thread
    Reply To: Copy & Paste Special Mutliply (Excel 2010)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: