Chewyhairball
Active Member
- Joined
- Nov 30, 2017
- Messages
- 312
- Office Version
- 365
- Platform
- Windows
Hi
I have thousands of lines of data comprised of the 2 types below and I would like to edit the numbers so they are to 1 decimal place.
<Test:Module>2</Test:Module> would become <Test:Module>2.0</Test:Module>
<Testb:Moduleb>4.2222</Testb:Moduleb> would become <Testb:Moduleb>4.2</Testb:Moduleb>
I currently import the data from a txt file into column A Sheet 1.
Sheet 2 has formulas in column A to do this task which I then copy and paste into a new txt file.
So my questions are
Thanks for any help with this.
Thank Rory
I have thousands of lines of data comprised of the 2 types below and I would like to edit the numbers so they are to 1 decimal place.
<Test:Module>2</Test:Module> would become <Test:Module>2.0</Test:Module>
<Testb:Moduleb>4.2222</Testb:Moduleb> would become <Testb:Moduleb>4.2</Testb:Moduleb>
I currently import the data from a txt file into column A Sheet 1.
Sheet 2 has formulas in column A to do this task which I then copy and paste into a new txt file.
So my questions are
- can I do this using VBA before copying and pasting back into a txt file and if so how.
- Can I use vba to alter the txt file directly and if so how.
Thanks for any help with this.
Thank Rory