Why is my AE column not updating?

Potatokat

New Member
Joined
May 17, 2022
Messages
5
Office Version
  1. 365
Hi everyone,

I am very new to VBA and have been learning it for work.

I am trying to create a macro button that will help me update the the value in the AE column to "N" if the value in the same row of the H column is "REPO".

I am not sure why my code doesn't work properly and just seems to select the AE column when I run it instead of changing the values to "N"

1652794338268.png


Thanks for the help in advance!

Any input would be much appreciated!
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
That should work.

Are you sure that the value in column H equals EXACTLY "REPO"?
Any additional characters, like a space or some other special character, will cause it NOT to match.

Also, do you have any VBA code in the "expo" sheet module in VBA?
That is where any automated code that might affect the worksheet would exist (could be something interfering with it).
 
Upvote 0
Solution
That should work.

Are you sure that the value in column H equals EXACTLY "REPO"?
Any additional characters, like a space or some other special character, will cause it NOT to match.

Also, do you have any VBA code in the "expo" sheet module in VBA?
That is where any automated code that might affect the worksheet would exist (could be something interfering with it).
Thank you! You are right, there was a space in "REPO" values so it didn't work properly. It works fine after I fixed that!
 
Upvote 0
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,224,788
Messages
6,180,953
Members
453,009
Latest member
lorbieckit

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