Click here to Skip to main content
15,912,069 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
Richard MacCutchan2-May-13 1:07
mveRichard MacCutchan2-May-13 1:07 
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
Richard Deeming2-May-13 1:23
mveRichard Deeming2-May-13 1:23 
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
Richard MacCutchan2-May-13 1:27
mveRichard MacCutchan2-May-13 1:27 
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
savedlema2-May-13 8:06
savedlema2-May-13 8:06 
AnswerRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
Eddy Vluggen2-May-13 5:07
professionalEddy Vluggen2-May-13 5:07 
AnswerRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
Alan N2-May-13 5:44
Alan N2-May-13 5:44 
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
savedlema2-May-13 8:01
savedlema2-May-13 8:01 
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
Alan N2-May-13 8:17
Alan N2-May-13 8:17 
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
savedlema3-May-13 0:54
savedlema3-May-13 0:54 
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
Alan N3-May-13 2:57
Alan N3-May-13 2:57 
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
savedlema3-May-13 4:24
savedlema3-May-13 4:24 
QuestionWord VBA: quickly checking if table is uniform from 3rd row on Pin
Bart Van Eyndhoven1-May-13 23:08
Bart Van Eyndhoven1-May-13 23:08 
AnswerRe: Word VBA: quickly checking if table is uniform from 3rd row on Pin
Kenneth Haugland2-May-13 2:28
mvaKenneth Haugland2-May-13 2:28 
QuestionRe: Word VBA: quickly checking if table is uniform from 3rd row on Pin
Kenneth Haugland2-May-13 2:37
mvaKenneth Haugland2-May-13 2:37 
AnswerRe: Word VBA: quickly checking if table is uniform from 3rd row on Pin
Bart Van Eyndhoven2-May-13 4:23
Bart Van Eyndhoven2-May-13 4:23 
GeneralRe: Word VBA: quickly checking if table is uniform from 3rd row on Pin
Kenneth Haugland2-May-13 4:54
mvaKenneth Haugland2-May-13 4:54 
GeneralRe: Word VBA: quickly checking if table is uniform from 3rd row on Pin
Bart Van Eyndhoven2-May-13 21:51
Bart Van Eyndhoven2-May-13 21:51 
AnswerRe: Word VBA: quickly checking if table is uniform from 3rd row on Pin
TnTinMn4-May-13 5:33
TnTinMn4-May-13 5:33 
Quote:
Is there a way to check if a table is uniform from the 3rd row on? Looping works, but it gets slow on long tables, so I want to avoid looping if possible.

It has been a long time since I did Word vba, but I think something like the following should do the trick for this part of your request.

Do note that I did not include any error handling in this.

Private Function TableIsUniformAfterRow(tbl As Table, row As Integer, sourcedoc As Document) As Boolean
    Dim app As Application
    Set app = sourcedoc.Application
    Dim tmpdoc As Document
    Set tmpdoc = app.Documents.Add(, , , False)
    app.Activate
    sourcedoc.Activate
    tbl.Select
    Selection.Copy
    Dim isuni As Boolean
    With tmpdoc
        .Activate
        Selection.Paste
        Dim i As Integer
        For i = 1 To row
            .Tables(1).Rows(1).Delete
        Next i
        TableIsUniformAfterRow = .Tables(1).Uniform
        .Close (False)
    End With
End Function

QuestionVB Macro one sheet is corrupt Pin
saurabhrahulsharma1-May-13 16:59
saurabhrahulsharma1-May-13 16:59 
AnswerRe: VB Macro one sheet is corrupt Pin
JR2121-May-13 20:31
JR2121-May-13 20:31 
AnswerRe: VB Macro one sheet is corrupt Pin
Kenneth Haugland2-May-13 1:24
mvaKenneth Haugland2-May-13 1:24 
QuestionHow can i Change Button Label Value Randomly in VIRTUAL KEYBOARD ??? Pin
Vivek1987agarwal1-May-13 10:03
Vivek1987agarwal1-May-13 10:03 
AnswerRe: How can i Change Button Label Value Randomly in VIRTUAL KEYBOARD ??? Pin
dusty_dex1-May-13 11:24
dusty_dex1-May-13 11:24 
GeneralRe: How can i Change Button Label Value Randomly in VIRTUAL KEYBOARD ??? Pin
Vivek1987agarwal1-May-13 20:49
Vivek1987agarwal1-May-13 20:49 
GeneralRe: How can i Change Button Label Value Randomly in VIRTUAL KEYBOARD ??? Pin
Richard MacCutchan1-May-13 21:24
mveRichard MacCutchan1-May-13 21:24 

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.