#1
|
|||
|
|||
How To Test For Numeric
This will be easy for you guys, but I can't figure it out.
I want to test the first word on the first line of my Word Document to see if it is Numeric. Then if it is Numeric, I want to run some code. Else Run some other code. I know I will have to use Range for the first paragraph and the first word. I have looked for examples for hours but nothing seems to work. I know that isnumeric will be used. Thanks |
#2
|
||||
|
||||
try
Code:
If IsNumeric(ActiveDocument.Words(1).Text) Then Debug.Print "A hit" End If
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#3
|
|||
|
|||
Guessed, Thank you very much. It was even more simple than I thought. I was trying to make a couple of Dim statements and complicate things.
Case closed. |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Test, just a test | Thomasordef | Office | 0 | 07-25-2019 10:43 AM |
Student's t-test (T.TEST): how to get p value? | seanspotatobusiness | Excel | 1 | 07-20-2018 05:46 AM |
Numeric Values | jrt | Word VBA | 2 | 11-09-2014 01:28 PM |
Use the dot key on the numeric keypad | YooNaa Kim | Word | 2 | 09-09-2013 08:25 AM |
test | Cheekychino | PowerPoint | 1 | 04-08-2013 09:09 PM |