troubleshooting Question

Excel VBA change cell value from positive to negative

Avatar of RHoover673
RHoover673 asked on
8 Comments1 Solution558 ViewsLast Modified:
I have an excel spreadsheet exported from our accounting web site.
Some of the General Ledger amounts are exported as a negative value, we then import into another application which requires this same cell to be changed to a positive. This is necessary on specific General Ledger numbers not all. The export file is dynamic in that the number of records changes with each export created.

Is it possible to have a vba procedure that will: loop through the records and if the record matches one of the defined GL numbers it wil make the value the reverse of what it currently is. If it is positive make it negative or if it is negative make it positive.As the sheet is created on the fly, I would like to have the list of GL numbers that are being evaluated stored in the vba code
Any help appreciated - Thank You

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros