zeekiehafa
New Member
- Joined
- May 15, 2012
- Messages
- 9
Hi all,
I am writing a vba program that needs to take data from an excel table that was converted from a pdf file and then process it for my specific needs. The processing of the data isn't important to my question.
The problem I have is that when this pdf table is converted to an excel table, items that I don't need that should be in separate cells end up being merged into the same cell with number values that I need.
For example, I need to use a number say it's 100,000 that should be in a cell by itself. But in the cell there's this string "100,000 (113)". Every single number has a space and a number between brackets after it. I need to write a VBA macro that gets rid of everything after the number. It needs to take something like this "numberIwant (numberIdon'twant)" and turn it into this "numberIwant" and then convert that to the single data type.
I've been trying and trying to figure it out myself and it's driving me stark raving mad at times.
I would appreciate some help.
I am writing a vba program that needs to take data from an excel table that was converted from a pdf file and then process it for my specific needs. The processing of the data isn't important to my question.
The problem I have is that when this pdf table is converted to an excel table, items that I don't need that should be in separate cells end up being merged into the same cell with number values that I need.
For example, I need to use a number say it's 100,000 that should be in a cell by itself. But in the cell there's this string "100,000 (113)". Every single number has a space and a number between brackets after it. I need to write a VBA macro that gets rid of everything after the number. It needs to take something like this "numberIwant (numberIdon'twant)" and turn it into this "numberIwant" and then convert that to the single data type.
I've been trying and trying to figure it out myself and it's driving me stark raving mad at times.
