Macro Button HELP

SirTLAW

New Member
Joined
Nov 8, 2018
Messages
2
Hi all,

First time posting.

I am trying to get a button to add incoming stock into a stock on hand column as well as a usage button to subtract stock from the same column.

I have attached an image with the spreadsheet as well as the code for the macro (which I have borrowed from one of the forum posts here).

What I am trying to achieve is for column "G" to add to column "F", and column "H" to subtract. I also want to exclude the rows above the red line so they aren't impacted when a button is pressed.

Currently the add button is working, I just need to exclude the rows, but the subtract button is not.

Any help would be greatly appreciated.

Thanks,


Excel-Issues.png
[/URL]

[/IMG]
 
Last edited by a moderator:

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hi & welcome to MrExcel.
To exclude the top rows change
Code:
For i= [COLOR=#ff0000]7[/COLOR] to
What is not working with the 2nd code?
 
Upvote 0
Thank you so much!

Unsure of what was wrong with the second code, last night it was asking me to debug the code, but all is working now.

Appreciate the help
 
Upvote 0
Glad it's working & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,213
Members
452,618
Latest member
Tam84

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top