Click here to Skip to main content
15,887,416 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Searching with special characters Pin
Richard Deeming21-Mar-19 3:24
mveRichard Deeming21-Mar-19 3:24 
GeneralRe: Searching with special characters Pin
Mycroft Holmes21-Mar-19 11:41
professionalMycroft Holmes21-Mar-19 11:41 
GeneralRe: Searching with special characters Pin
Richard Deeming22-Mar-19 1:37
mveRichard Deeming22-Mar-19 1:37 
AnswerRe: Searching with special characters Pin
Eddy Vluggen21-Mar-19 4:35
professionalEddy Vluggen21-Mar-19 4:35 
AnswerRe: Searching with special characters Pin
Richard MacCutchan21-Mar-19 5:03
mveRichard MacCutchan21-Mar-19 5:03 
QuestionExporting Access db to Excel Pin
RedPandinus19-Mar-19 1:20
RedPandinus19-Mar-19 1:20 
AnswerRe: Exporting Access db to Excel Pin
Richard Deeming19-Mar-19 2:08
mveRichard Deeming19-Mar-19 2:08 
GeneralRe: Exporting Access db to Excel Pin
RedPandinus20-Mar-19 5:20
RedPandinus20-Mar-19 5:20 
whats wrong with this code? throws COM error. I added interop reference. thanks.
{Retrieving the COM class factory for component with CLSID {00020819-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).}


Private Sub excel_Click(sender As Object, e As EventArgs) Handles excel.Click
    Threading.Thread.CurrentThread.CurrentCulture = Globalization.CultureInfo.CreateSpecificCulture("en-US")
    Dim Xa As New Excel.Application
    Dim Wb As New Excel.Workbook
    Dim Ws As New Excel.Worksheet

    Wb = Xa.Workbooks.Add
    Ws = Wb.Worksheet("Sheet1")

    Ws.Cells(0, 0) = "Column_1"
    Ws.Cells(0, 1) = "Column_2"

    Ws.Cells(1, 0) = "Value_1"
    Ws.Cells(1, 1) = "Value_2"

    Xa.Visible = True
    Ws = Nothing : Wb = Nothing : Xa = Nothing

End Sub

GeneralRe: Exporting Access db to Excel Pin
Richard MacCutchan20-Mar-19 5:36
mveRichard MacCutchan20-Mar-19 5:36 
GeneralRe: Exporting Access db to Excel Pin
RedPandinus20-Mar-19 5:51
RedPandinus20-Mar-19 5:51 
GeneralRe: Exporting Access db to Excel Pin
Richard MacCutchan20-Mar-19 6:07
mveRichard MacCutchan20-Mar-19 6:07 
GeneralRe: Exporting Access db to Excel Pin
Dave Kreskowiak20-Mar-19 8:46
mveDave Kreskowiak20-Mar-19 8:46 
GeneralRe: Exporting Access db to Excel Pin
RedPandinus20-Mar-19 20:08
RedPandinus20-Mar-19 20:08 
GeneralRe: Exporting Access db to Excel Pin
Richard Deeming20-Mar-19 12:35
mveRichard Deeming20-Mar-19 12:35 
GeneralRe: Exporting Access db to Excel Pin
RedPandinus20-Mar-19 20:18
RedPandinus20-Mar-19 20:18 
GeneralRe: Exporting Access db to Excel Pin
Richard MacCutchan20-Mar-19 22:52
mveRichard MacCutchan20-Mar-19 22:52 
GeneralRe: Exporting Access db to Excel Pin
RedPandinus20-Mar-19 23:24
RedPandinus20-Mar-19 23:24 
Questiontextbox allowance Pin
Member 1418376915-Mar-19 4:27
Member 1418376915-Mar-19 4:27 
AnswerRe: textbox allowance Pin
Dave Kreskowiak15-Mar-19 4:29
mveDave Kreskowiak15-Mar-19 4:29 
QuestionTyping into 2 different Textbox at same time Pin
RedPandinus13-Mar-19 22:23
RedPandinus13-Mar-19 22:23 
AnswerRe: Typing into 2 different Textbox at same time Pin
Ralf Meier13-Mar-19 22:35
mveRalf Meier13-Mar-19 22:35 
QuestionGetType of variable before deserialization possible? Pin
Sam Marrocco12-Mar-19 15:07
Sam Marrocco12-Mar-19 15:07 
AnswerRe: GetType of variable before deserialization possible? Pin
Ralf Meier12-Mar-19 22:15
mveRalf Meier12-Mar-19 22:15 
AnswerRe: GetType of variable before deserialization possible? Pin
Eddy Vluggen13-Mar-19 0:24
professionalEddy Vluggen13-Mar-19 0:24 
AnswerRe: GetType of variable before deserialization possible? Pin
Dave Kreskowiak13-Mar-19 4:36
mveDave Kreskowiak13-Mar-19 4:36 

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.