Maria Clara
New Member
Hello All,
I'm new to VBA and I'm trying to write a code for the spreadsheet below but so far I had no success.
http://www.sendspace.com/file/mu39la
What I need to do is to multiply all values in each column by the number on column M if the values on range B2, C2 and so on are marked as 'International'.
I think it is important to mention that sometimes I might have less than 10 columns to do this calculation and sometimes more, so I guess I'd need a code that shows something as 'As long the range that starts on B2 (it will always start on B2) is not empty and as long as column A is not empty then all values should be multiplied by cell M1 - if they are 'International'.
I'm not sure If I was clear but I hope so.
Thank you in advance for the help.
I'm new to VBA and I'm trying to write a code for the spreadsheet below but so far I had no success.
http://www.sendspace.com/file/mu39la
What I need to do is to multiply all values in each column by the number on column M if the values on range B2, C2 and so on are marked as 'International'.
I think it is important to mention that sometimes I might have less than 10 columns to do this calculation and sometimes more, so I guess I'd need a code that shows something as 'As long the range that starts on B2 (it will always start on B2) is not empty and as long as column A is not empty then all values should be multiplied by cell M1 - if they are 'International'.
I'm not sure If I was clear but I hope so.
Thank you in advance for the help.