creat macro: office 2003

B

beero

hello friends:
it might be not the correct forum, so guide me to the correct one.
please i need to creat a macro make this task for me:
replace any diget in document for example, (1text) to (\s diget ) (\s 1 text)
..
sorry for long explnation, am new user in this tasks.
wish to help me.
thanks.
beero.

url:http://www.ureader.com/gp/1020-1.aspx
 
M

macropod

Hi beero,

Using Find/Replace -
In the Find box, enter:
[0-9]{1,})([A-Za-z])
In the Replace box, enter:
^92s \1 \2
Choose 'Use wildcards' and click 'Replace All'.

If you want a macro for this, use the macro recorder - the code it records will be nearly as efficient as a hand-coded one.
 
B

beero

hello my dear:
i not need to replace numbers by 1,
i've a document contains numbers: 1text. 2text. 3text. 200text... so on.
what i need to use ^#, but it unusable on replace dialogue, can i define it?

or create a macro to replace any diget by \s diget ,
diget= range: 1 to 200
wish to be clear.
thanks.

url:http://www.ureader.com/msg/10201411.aspx
 
D

Doug Robbins - Word MVP

It might help if you gave an example of what you mean by

replace any diget in document for example, (1text) to (\s diget ) (\s 1
text)

However, using the Edit>Replace dialog, click on the More button and check
the Use Wildcards box and then in the Find what control, enter

([0-9]{1,})([A-Za-z])

and in the Replace with control, enter:

^92s \1 \2

Then click on Replace all.

That will result in anything like

#text

being replaced by

\s#text


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 
B

beero

hello my dear:
thanks very much, it give me what i need in english, but i need to make this range as arab=
ic letters.
from =D8=A7 to =D8=A2.
instad of typing a-z can i type =D8=A7-=D8=A2 =D8=9F, gave me uncorrect range, so can=
i type all letters? =

give me example even in english and will try.
thanks.

url:http://www.ureader.com/msg/10201411.aspx
 
M

macropod

Hi beero,

Have you actually tried the solutions you've been given? They do what you have asked. If you want something else, you'll need to
tell us what it is. You also mention arabic, in which case, it seems you might actually need a solution related to right>left
languages, rather than left>right languages. Is that so?
 
B

beero

hello my dear macropod:
yes i need a solution for right to left arabic language.
in fact the range work but from alef to iaa but how can i add hamza above
and bellow alef also mad above alef?
because many numbers followed by this characters.
just give me example if you can't type arabic,
i need to make range of a to z, and from capital letters S T and Y!, let me
how it can be written and i can replace this form and put arabic letters.
also is replacing from right to left make different?
thanks very much.
beero.

url:http://www.ureader.com/msg/10201411.aspx
 
D

Doug Robbins - Word MVP

Please see responses to your post in the
microsoft.public.word.international.features newsgroup.

As suggested there, you should probably post to one of the arabic newsgroups
to which I cross posted a response.


--
Hope this helps

Doug Robbins - Word MVP
Please reply only to the newsgroups unless you wish to avail yourself of my
services on a paid, professional basis.
 
D

Doug Robbins - Word MVP

Please stop using the www.ureader.com method of accessing the newsgroups as
it does not comply with the NTTP standards in that it does not properly
"thread" messages.

Instead, I suggest that you connect to the newsgroup server using Outlook
Express (or if using Vists, Windows Mail)

Open Outlook Express and follow these steps:
1. On the Tools menu, click Accounts.
2. In the Internet Account dialog box, click Add, and then click News.
The Internet Connection Wizard starts. Follow these steps in the wizard:
1. On the first screen, in the Display name box, type the name that other
users will see when you post a message to the newsgroup, and then click
Next.
2. On the second screen, type your full e-mail address in the E-mail address
box, and then click Next.
3. On the third screen, in the News (NNTP) Server box, type the name of your
news server. To subscribe to the newsgroups hosted on Microsoft's servers,
type msnews.microsoft.com. If you don't know the name of your news server,
contact your Internet provider.
4. If necessary, select the My news server requires me to log on check box,
and then click Next. If you don't know whether your server requires you to
log on, contact your Internet provider. The Microsoft server does not
require a user name and password.
5. On the last screen, click Finish.
6. Click Close, and then click Yes when asked if you want to download
newsgroups from the account you just created. The Newsgroup Subscriptions
dialog box appears.
7. Select the newsgroups you want to use, click Subscribe, and then click
OK.

Note Most of Microsoft newsgroups use this naming convention:
microsoft.public.application_name.specific_area. For example: you could
subscribe to microsoft.public.office.dataanalyzer, or
microsoft.public.excel.programming. However, that isn't always the case.
Don't be afraid to browse the list of groups in order to find something that
you think will be useful.

8. On the Tools menu, click Options, click the Read tab, and then clear the
Get 300 headers at a time check box.
9. Click the Maintenance tab, clear the Delete new messages n days after
being downloaded check box, and then click OK.
Step 5 allows you to download and read all the newsgroup's postings when you
first subscribe. Step 6 allows you to read older messages.

Subscribe or unsubscribe to newsgroups

After you establish a connection to your newsgroup server, you add
newsgroups to your list by subscribing. You can subscribe or unsubscribe to
newsgroups at any time. Typically, you use the group name as a guide when
subscribing. For example, a name such as
microsoft.public.office.developer.outlook.forms would be a good place to
start if you need help writing a custom form for Outlook.
To subscribe
1. Start Outlook Express.
2. In the folder pane, click the name of your news server. For example, if
you established a connection to Microsoft's server, click
msnews.microsoft.com.
3. In the main viewing pane, click Newsgroups.
4. In the Newsgroup Subscriptions dialog box, select a newsgroup from the
list, and then click Subscribe.
5. Repeat the previous step to subscribe to additional newsgroups, and then
click OK when you finish.
6. In the main viewing pane, double-click the name of the new newsgroup. If
you only want to receive new messages since the last time you visited,
select the New messages only check box, and then double-click the newsgroup
name.

Note When you subscribe to a newsgroup for the first time, you receive all
the messages whether or not you select the New messages only check box.
To unsubscribe
.. In the Outlook Express folder pane, right-click the newsgroup that you
want to stop using, and then click Unsubscribe on the shortcut menu.
Tips
.. To reduce the number of items in the list of available newsgroups, enter a
phrase in the Display newsgroups which contain box. For instance, you can
enter an application name such as "publisher" or the name of a discipline
such as "programming." The list changes automatically when you finish
typing.
.. Newsgroups in languages other than English are identified by their names;
for example, microsoft.public.fr.excel is a newsgroup for Microsoft Excel
users who speak French.


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
Message-ID: <[email protected]>
X-Mailer: http://www.umailcampaign.com, ip log:41.196.144.163
Newsgroups: microsoft.public.word.vba.beginners
NNTP-Posting-Host: 22.bb.5446.static.theplanet.com 70.84.187.34
Path: TK2MSFTNGP01.phx.gbl!TK2MSFTNGP02.phx.gbl!newspe.com
Lines: 1
Xref: TK2MSFTNGP01.phx.gbl microsoft.public.word.vba.beginners:39932

hello sir:
you wrote: "As suggested there, you should probably post to one of the
arabic newsgroups
to which I cross posted a response".
what's this newsgroups?, url? and how can i subscribe?
thanks very much.

url:http://www.ureader.com/msg/10201411.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top