Click here to Skip to main content
15,902,908 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionAre there Resources for creating VBA/VB6 IDE Panes to Jump to Module Code Pin
LukeVA26-May-15 6:20
LukeVA26-May-15 6:20 
AnswerRe: Are there Resources for creating VBA/VB6 IDE Panes to Jump to Module Code Pin
Dave Kreskowiak26-May-15 9:24
mveDave Kreskowiak26-May-15 9:24 
QuestionDetect a Word or Excel file regardless of extension Pin
satc25-May-15 23:27
satc25-May-15 23:27 
AnswerRe: Detect a Word or Excel file regardless of extension Pin
Richard MacCutchan26-May-15 3:12
mveRichard MacCutchan26-May-15 3:12 
AnswerRe: Detect a Word or Excel file regardless of extension Pin
Dave Kreskowiak26-May-15 3:16
mveDave Kreskowiak26-May-15 3:16 
AnswerRe: Detect a Word or Excel file regardless of extension Pin
Sascha Lefèvre26-May-15 3:24
professionalSascha Lefèvre26-May-15 3:24 
GeneralRe: Detect a Word or Excel file regardless of extension Pin
satc26-May-15 22:13
satc26-May-15 22:13 
GeneralRe: Detect a Word or Excel file regardless of extension Pin
Sascha Lefèvre27-May-15 3:19
professionalSascha Lefèvre27-May-15 3:19 
You could use Microsoft Office Interop to try opening it - if it succeeds it's probably a valid Word doc.

The simplest example I know of is in C# but I'm sure you'll be able to read it:
http://www.dotnetperls.com/word[^]

Suggested Google search terms for further reading:
vb.net word interop
vb.net open word interop
codeproject vb.net word interop

As you might have already guessed, there's also interop-functionality for other Office applications like Excel, so you could replace "word" with "office" in those search terms if you're also interested to validate other Office file types.
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

QuestionDrag & drop operation details Pin
satc25-May-15 22:08
satc25-May-15 22:08 
AnswerRe: Drag & drop operation details Pin
Dave Kreskowiak26-May-15 3:08
mveDave Kreskowiak26-May-15 3:08 
GeneralRe: Drag & drop operation details Pin
satc26-May-15 17:59
satc26-May-15 17:59 
GeneralRe: Drag & drop operation details Pin
Dave Kreskowiak27-May-15 2:19
mveDave Kreskowiak27-May-15 2:19 
QuestionEntity Framework : Too slow when executing the first query Pin
satc24-May-15 16:22
satc24-May-15 16:22 
AnswerRe: Entity Framework : Too slow when executing the first query Pin
Richard MacCutchan24-May-15 21:42
mveRichard MacCutchan24-May-15 21:42 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
satc24-May-15 21:50
satc24-May-15 21:50 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
Richard MacCutchan24-May-15 22:15
mveRichard MacCutchan24-May-15 22:15 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
satc24-May-15 22:49
satc24-May-15 22:49 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
Richard MacCutchan24-May-15 23:09
mveRichard MacCutchan24-May-15 23:09 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
satc24-May-15 23:15
satc24-May-15 23:15 
SuggestionRe: Entity Framework : Too slow when executing the first query Pin
Richard Deeming27-May-15 2:10
mveRichard Deeming27-May-15 2:10 
AnswerRe: Entity Framework : Too slow when executing the first query Pin
Eddy Vluggen24-May-15 23:30
professionalEddy Vluggen24-May-15 23:30 
AnswerRe: Entity Framework : Too slow when executing the first query Pin
Dave Kreskowiak25-May-15 3:46
mveDave Kreskowiak25-May-15 3:46 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
satc25-May-15 6:34
satc25-May-15 6:34 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
Dave Kreskowiak25-May-15 6:37
mveDave Kreskowiak25-May-15 6:37 
GeneralRe: Entity Framework : Too slow when executing the first query Pin
satc25-May-15 6:49
satc25-May-15 6:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.