Click here to Skip to main content
15,888,008 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: reading html data using the vb script Pin
Member 1062036024-Feb-14 17:43
Member 1062036024-Feb-14 17:43 
GeneralRe: reading html data using the vb script Pin
Dave Kreskowiak24-Feb-14 17:46
mveDave Kreskowiak24-Feb-14 17:46 
QuestionRunning VB6 programs in Windows 7 Pin
Wycombe24-Feb-14 12:00
Wycombe24-Feb-14 12:00 
AnswerRe: Running VB6 programs in Windows 7 Pin
Dave Kreskowiak24-Feb-14 14:49
mveDave Kreskowiak24-Feb-14 14:49 
GeneralRe: Running VB6 programs in Windows 7 Pin
Wycombe25-Feb-14 5:01
Wycombe25-Feb-14 5:01 
GeneralRe: Running VB6 programs in Windows 7 Pin
Dave Kreskowiak25-Feb-14 6:47
mveDave Kreskowiak25-Feb-14 6:47 
AnswerRe: Running VB6 programs in Windows 7 Pin
MyOwnBoss7-Mar-14 13:02
MyOwnBoss7-Mar-14 13:02 
QuestionMulti Select List box to Word 2007 table Pin
Member 791951624-Feb-14 8:20
Member 791951624-Feb-14 8:20 
Hello VB Code people,
I'm having trouble finding the correct code that when I select or multi-select an item from a list box in a Word 2007 userform and then press a button. I want it to create a table in Word 2007 from the items that I've selected in the list box. The userform gets populated from Excel and it works fine. Below is the VB Code for populating the userform with Excel data. Any help is greatly appreciated. Thank you

VB
Private Sub Userform_Initialize()
Dim strOffice As String
Dim i As Long
Dim db As DAO.Database
Dim rs As DAO.Recordset
  strOffice = "Test"
  'Open the spreadsheet containing the data
  Set db = OpenDatabase("C:Testdata.xlsx", False, False, "Excel 12.0; IMEX=1;")
  'Retrieve the recordset
  Set rs = db.OpenRecordset("SELECT * FROM `Test`")
  'Set the number of Columns = number of Fields in recordset
  ListBox1.ColumnCount = rs.Fields.Count
  'Determine the number of retrieved records
  With rs
    .MoveLast
    i = .RecordCount
    .MoveFirst
  End With
  'Load the listbox with the retrieved records
  ListBox1.Column = rs.GetRows(i)
  'Cleanup
    
  rs.Close
  db.Close
  Set rs = Nothing
  Set db = Nothing
lbl_Exit:
  Exit Sub
    
End Sub

QuestionUpdating ComboBox after Insert or Delete with SQL 2008 Pin
Dan O'Riordan23-Feb-14 23:25
Dan O'Riordan23-Feb-14 23:25 
AnswerRe: Updating ComboBox after Insert or Delete with SQL 2008 Pin
Eddy Vluggen24-Feb-14 7:53
professionalEddy Vluggen24-Feb-14 7:53 
GeneralRe: Updating ComboBox after Insert or Delete with SQL 2008 Pin
Dan O'Riordan24-Feb-14 18:42
Dan O'Riordan24-Feb-14 18:42 
GeneralRe: Updating ComboBox after Insert or Delete with SQL 2008 Pin
Eddy Vluggen25-Feb-14 0:28
professionalEddy Vluggen25-Feb-14 0:28 
GeneralRe: Updating ComboBox after Insert or Delete with SQL 2008 Pin
Dan O'Riordan25-Feb-14 1:04
Dan O'Riordan25-Feb-14 1:04 
GeneralRe: Updating ComboBox after Insert or Delete with SQL 2008 Pin
Eddy Vluggen25-Feb-14 3:04
professionalEddy Vluggen25-Feb-14 3:04 
GeneralRe: Updating ComboBox after Insert or Delete with SQL 2008 Pin
Dan O'Riordan25-Feb-14 3:29
Dan O'Riordan25-Feb-14 3:29 
QuestionHow do I use ErrorProvider with a bound UserControl? (WinForms) Pin
GroupIII20-Feb-14 17:46
GroupIII20-Feb-14 17:46 
AnswerRe: How do I use ErrorProvider with a bound UserControl? (WinForms) Pin
Eddy Vluggen20-Feb-14 22:30
professionalEddy Vluggen20-Feb-14 22:30 
Question100,000 Items in Check ListBox result in slow performance Pin
Arun Peswani19-Feb-14 7:04
Arun Peswani19-Feb-14 7:04 
AnswerRe: 100,000 Items in Check ListBox result in slow performance Pin
Eddy Vluggen19-Feb-14 8:11
professionalEddy Vluggen19-Feb-14 8:11 
GeneralRe: 100,000 Items in Check ListBox result in slow performance Pin
Arun Peswani19-Feb-14 16:09
Arun Peswani19-Feb-14 16:09 
GeneralRe: 100,000 Items in Check ListBox result in slow performance Pin
Eddy Vluggen20-Feb-14 0:29
professionalEddy Vluggen20-Feb-14 0:29 
GeneralRe: 100,000 Items in Check ListBox result in slow performance Pin
Arun Peswani20-Feb-14 5:35
Arun Peswani20-Feb-14 5:35 
GeneralRe: 100,000 Items in Check ListBox result in slow performance Pin
Eddy Vluggen20-Feb-14 8:45
professionalEddy Vluggen20-Feb-14 8:45 
GeneralRe: 100,000 Items in Check ListBox result in slow performance Pin
Arun Peswani20-Feb-14 20:55
Arun Peswani20-Feb-14 20:55 
GeneralRe: 100,000 Items in Check ListBox result in slow performance Pin
Eddy Vluggen21-Feb-14 6:43
professionalEddy Vluggen21-Feb-14 6:43 

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.