Results 1 to 4 of 4

Paste Special Add Value - Neat Code?

Threaded View

  1. #1
    Registered User
    Join Date
    11-22-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    1

    Paste Special Add Value - Neat Code?

    Hi,

    I'm wondering if anyone knows the concise coding to add a value onto an existing variable value, in essence just like when you hit copy, paste special, then add values onto the target cell. I've tried recording it, and it works through paste special, but the code looks really ugly, and the worksheet seems to jump around a bit (the macro works with numerous ranges throughout the workbook). I'm looking for a better way.

    for instance I am after something like this, although i realise it looks a bit circular:

    [code]range("variable").value = range("variable").value + range("another_variable").value[code]

    This clearly doesnt work - Is it at all possible?

    Thanks for your help.
    Last edited by royUK; 11-22-2010 at 10:33 AM. Reason: add code tags

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