+ Reply to Thread
Results 1 to 4 of 4

using adjusted paste special / multiply in VBA

  1. #1
    Forum Contributor
    Join Date
    06-29-2005
    Posts
    201

    using adjusted paste special / multiply in VBA

    Hi all,

    How can I multiply a variing range with 1, to make sure that numbers are treated as numbers.
    Now i find that sometimes numbers are regarded as text, which influences the outcome of my rank formula.

    the range = rngInput (which varies)
    the multiplyfactor = 1

    I am trying to use the paste special, multiply option, but don't know how to adjust the formula to my purposes
    This formula is:
    Selection.PasteSpecial paste:=xlPasteAll, Operation:= xlMultiply, _
    skipblanks:=False, Transpose:= False

    Who knows what tot do?

    Thanks in advance

    Hein

    PS
    Maybe there is another way which is more efficient?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,515

    Re: using adjusted paste special / multiply in VBA

    Example:

    Please Login or Register  to view this content.


    so, in this case:

    Please Login or Register  to view this content.


    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: using adjusted paste special / multiply in VBA

    Try this:

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Contributor
    Join Date
    06-29-2005
    Posts
    201

    Re: using adjusted paste special / multiply in VBA

    Thanks shg
    Your tip did the trick
    I didn't get the 1st tip to work, but yours did!

    Hein

    PS
    Sorry for the deleyed answer!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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