Honda-Acura.net

Honda-Acura.net (https://www.honda-acura.net/forums/index.php)
-   The Basement (https://www.honda-acura.net/forums/the-basement-2/)
-   -   office help (https://www.honda-acura.net/forums/the-basement/275028-office-help.html)

Red X 08-01-2007 08:36 AM

office help
 
This is the one time I wish I had linux.

Anyone know of a windows program or of a way in office to replace all occurrences of references with a linear addition?

For example:

I need to add +4

[1],[4],[5-9] -> [5],[8],[9-13]

Thanks.

bnuk 08-01-2007 08:40 AM

what kind of file? i'm assuming excel. a pretty simple macro should do it.

thomas 08-01-2007 08:51 AM

what linux program does that?

bnuk 08-01-2007 08:54 AM

oh is that just lines of text? Can you do VB at all?

Red X 08-01-2007 08:57 AM

its office word

and with linux I could use sed/awk/grep commands to parse the file.

Red X 08-01-2007 08:58 AM


Originally Posted by bnuk (Post 3580933)
oh is that just lines of text? Can you do VB at all?

I've never gotten down to the the VB level in word - I kinda don't have time to mess around with programming it (as simple as it is, I get side-tracked very easily); is there a simpler solution?

thomas 08-01-2007 09:00 AM

vim for windows has a find and replace function


EDIT: Nm that wont work

Red X 08-01-2007 09:01 AM


Originally Posted by bnuk (Post 3580911)
what kind of file? i'm assuming excel. a pretty simple macro should do it.

If it was excel it'd be awesome. But its a technical paper and I'm combining multiple papers with different cited sources and their numbers need to match up.

bnuk 08-01-2007 09:02 AM

I would spit one out for you but I've only ever worked with excel, im not sure how you read text from a text file.

Red X 08-01-2007 09:02 AM


Originally Posted by hector200 (Post 3580945)
vim for windows has a find and replace function


EDIT: Nm that wont work

I can use word, sort of, but their find and replace is awkward at best and they don't have mathematical commands since everything is text based - so adding 4 is just improper and confuses the shit out of the program.


All times are GMT -8. The time now is 08:02 PM.


© 2024 MH Sub I, LLC dba Internet Brands