Click here to Skip to main content
15,879,326 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
GeneralRe: How can i Change Button Label Value Randomly in VIRTUAL KEYBOARD ??? Pin
Vivek1987agarwal1-May-13 21:30
Vivek1987agarwal1-May-13 21:30 
GeneralRe: How can i Change Button Label Value Randomly in VIRTUAL KEYBOARD ??? Pin
Richard MacCutchan1-May-13 22:04
mveRichard MacCutchan1-May-13 22:04 
QuestionSQL working in SQLPlus but not returning rows in VB.net using Oracle.OLEDB provider Pin
liona1-May-13 3:14
liona1-May-13 3:14 
AnswerRe: SQL working in SQLPlus but not returning rows in VB.net using Oracle.OLEDB provider Pin
Simon_Whale1-May-13 3:24
Simon_Whale1-May-13 3:24 
GeneralRe: SQL working in SQLPlus but not returning rows in VB.net using Oracle.OLEDB provider Pin
liona1-May-13 3:28
liona1-May-13 3:28 
QuestionRe: SQL working in SQLPlus but not returning rows in VB.net using Oracle.OLEDB provider Pin
Richard Deeming1-May-13 3:56
mveRichard Deeming1-May-13 3:56 
AnswerRe: SQL working in SQLPlus but not returning rows in VB.net using Oracle.OLEDB provider Pin
liona1-May-13 4:13
liona1-May-13 4:13 
GeneralRe: SQL working in SQLPlus but not returning rows in VB.net using Oracle.OLEDB provider Pin
TnTinMn1-May-13 5:41
TnTinMn1-May-13 5:41 
AnswerRe: SQL working in SQLPlus but not returning rows in VB.net using Oracle.OLEDB provider Pin
Bernhard Hiller1-May-13 22:28
Bernhard Hiller1-May-13 22:28 
GeneralRe: SQL working in SQLPlus but not returning rows in VB.net using Oracle.OLEDB provider Pin
liona2-May-13 0:14
liona2-May-13 0:14 

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.