It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

programming using if else

Moderator: dafunkymunky

programming using if else

Postby suvendu4urs on Fri Jun 06, 2008 11:59 am

If (Selection.Text = TWK) Then
If ((ActiveDocument.Name = "Selftest.doc")) Then
original
Else
Tabular
End If
Else
original
End If
ya 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?
suvendu4urs
 
Posts: 0
Joined: Fri Jun 06, 2008 11:08 am
Location: bangalore

Who is online

Users browsing this forum: No registered users and 2 guests

cron