suvendu4urs
Joined: 06 Jun 2008 Posts: 1 Location: bangalore
|
Posted: Fri Jun 06, 2008 12:59 pm Post subject: programming using if else |
|
|
If (Selection.Text = TWK) Then
If ((ActiveDocument.Name = "Selftest.doc")) Then
original
Else
Tabular
End If
Else
original
End Ifya actually i have seven files.inside that 4 files contain TWK and 3 files doesnot conatin.
in the if condition i am checking that it conatin TWK or not.if it conatin then it will print tabular.if it does not then it will print original.
so here selftest.doc which conatin TWK but for this file i want to print to print original.
but i want to write the program without using that file name.
how to do? |
|