finaljustice
Board Regular
- Joined
- Oct 6, 2010
- Messages
- 175
Hi there I've been wondering what would be the best way to extract just like using "=mid()" and "=find()" formulas in vba for extracting information saved within a variable.
An example of what i mean.
A cell contains info such as: "Mr. Robert Kinsley"
I want to save that info within a variable (which i know how) but then using the excel formulas extract everything from the "." to the right (i.e: Robert Kinsley"
Normally I would paste the formula that would make me achieve that in a cell and then retrieve that information but is there a way to manipulate / use those "=mid() , =find(), etc" formulas in vba directly without pasting the actual formula in a cell, so then i could just do this manipulation and save it within a new variable and then paste the exact info I want and not the surplus "title" names etc which I don't want.
Thank you for your help.
finaljustice
An example of what i mean.
A cell contains info such as: "Mr. Robert Kinsley"
I want to save that info within a variable (which i know how) but then using the excel formulas extract everything from the "." to the right (i.e: Robert Kinsley"
Normally I would paste the formula that would make me achieve that in a cell and then retrieve that information but is there a way to manipulate / use those "=mid() , =find(), etc" formulas in vba directly without pasting the actual formula in a cell, so then i could just do this manipulation and save it within a new variable and then paste the exact info I want and not the surplus "title" names etc which I don't want.
Thank you for your help.
finaljustice