Display change in value of a cell in adjacent cell using excel VBA -


i have excel sheet display's price on items in column looking amazon api using excel vba. price of may change overtime. trying display difference in prices each time run macro, in cell adjacent cell displays price. not sure how achieve this. can body guide me on how achieve this?

this sample, must adapted schema , data layout. prices stored in column a a1 a100. have macro called refreshdata() updates column a. in b1 enter:

=c1-a1 

and copy down. macro store current values in column c before refreshing data:

sub doupdate()     range("a1:a100").copy range("c1")     call refreshdata end sub 

column b display price difference.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -