Hello,
I have been using TextPad and it's basic tools for years. Now i want to get into more of the advance stuff. I have a list:
=Datasheet!I94
=Datasheet!H94
=Datasheet!G94
=Datasheet!F94
=Datasheet!E94
=Datasheet!D94
=Datasheet!C94
That i want to increment the last 2 characters up by one
i.g.:
=Datasheet!I94
=Datasheet!H95
=Datasheet!G96
=Datasheet!F97
=Datasheet!E98
=Datasheet!D99
=Datasheet!C100
Can you tell me how to do this from scratch? i searched thru the forum on answers to other macro coding but i do not understand where and how to input the code. is it an .ini or .bat file? what language can i use? etc.
Thanks in Advance
Mintz
TextPad Macro Incrementing numbers +1
Moderators: AmigoJack, bbadmin, helios, MudGuard
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
If you know in advance what number the sequence should start from, you can do this with a single search and replace action, using regular expressions:
Reference Information | Regular Expressions,
Reference Information | Replacement Expressions,
How to... | Find and Replace Text | Generate Sequence Numbers and
How to... | Find and Replace Text | Use Regular Expressions.
This assumes you are using Posix regular expression syntax:Find what: (=Datasheet![A-Z])[0-9]+
Replace with: \1\i(94)
[X] Regular expression
Replace All
Look in TextPad's help underConfigure | Preferences | Editor
[X] Use POSIX regular expression syntax
Reference Information | Regular Expressions,
Reference Information | Replacement Expressions,
How to... | Find and Replace Text | Generate Sequence Numbers and
How to... | Find and Replace Text | Use Regular Expressions.