Click here to Skip to main content
15,927,745 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: 2 dimensional array? class alternative? Pin
John Kuhn3-Feb-05 7:59
John Kuhn3-Feb-05 7:59 
Questionhow can i show the character if is a UNICIODE in textbox Pin
2-Feb-05 12:08
suss2-Feb-05 12:08 
Questionhow can i show the character if a UNICIODE in textbox Pin
mirzaei2-Feb-05 12:04
mirzaei2-Feb-05 12:04 
GeneralHDD and Mother board SerialNo Pin
rifan2-Feb-05 9:41
rifan2-Feb-05 9:41 
GeneralRe: HDD and Mother board SerialNo Pin
rwestgraham2-Feb-05 11:23
rwestgraham2-Feb-05 11:23 
GeneralRe: HDD and Mother board SerialNo Pin
Dave Kreskowiak2-Feb-05 15:06
mveDave Kreskowiak2-Feb-05 15:06 
GeneralRe: HDD and Mother board SerialNo Pin
rifan3-Feb-05 9:59
rifan3-Feb-05 9:59 
GeneralDrop Excel into OLE object (Access/VBA) Pin
john john mackey2-Feb-05 9:20
john john mackey2-Feb-05 9:20 
I have an Access form that I created an Unbound OLE object frame on it. The OLE object was configured (by the Wizard) to accept Excel and I want to use it as a portal to import Excel worksheets into my Access DB (drag/drop filename and voila, my OLE object has an Excel sheet!)

My question is, once that the Excel worksheet is in the OLE object, how can use VBA code to go through the Excel object and extract field values and populate a given Access table?

Here are some defintions that I started to try but did not work:
<br />
Private Function ReadExcelObject()<br />
    Dim bRetStatus As Boolean<br />
    <br />
    Dim oXLapp As Excel.Application<br />
    Dim oXLwsh As Excel.Worksheet<br />
    Dim oXLrng As Excel.Range<br />
    bRetStatus = True<br />
<br />
'OLEUnboundExcel is an Unbounded Object Frame<br />
'    Set oXLapp = OLEUnboundExcel.Application   'this produces a type-mismatch<br />
'    Set oXLwsh = oXLapp.Worksheets(1)<br />
'OLEUnboundExcel<br />
    'Set oXLapp = GetObject(, OLEUnboundExcel)<br />
'    Set oXLapp = OLEUnboundExcel.Object<br />
'    Set oXLwsh = oXLapp.Worksheets(1)<br />
    <br />
'what do I do to make this work???<br />
    <br />
    ReadExcelObject = bRetStatus<br />
    <br />
End Function


Thanks in advance!
Johnny
GeneralRe: Drop Excel into OLE object (Access/VBA) Pin
john john mackey2-Feb-05 9:26
john john mackey2-Feb-05 9:26 
GeneralRegistry - Qword Pin
Anonymous2-Feb-05 7:31
Anonymous2-Feb-05 7:31 
GeneralRe: Registry - Qword Pin
Dave Kreskowiak2-Feb-05 10:36
mveDave Kreskowiak2-Feb-05 10:36 
GeneralRe: Registry - Qword Pin
Dave Kreskowiak2-Feb-05 15:04
mveDave Kreskowiak2-Feb-05 15:04 
GeneralRe: Registry - Qword Pin
Anonymous3-Feb-05 12:32
Anonymous3-Feb-05 12:32 
GeneralRaiseEvent not triggerd Pin
DSLR2-Feb-05 5:14
DSLR2-Feb-05 5:14 
Questionhow to realice permutations in a VBA Programm Pin
Stephan Wright2-Feb-05 4:19
Stephan Wright2-Feb-05 4:19 
AnswerRe: how to realice permutations in a VBA Programm Pin
Stephan Wright2-Feb-05 21:38
Stephan Wright2-Feb-05 21:38 
Generalmoving between forms Pin
fo0lish2-Feb-05 3:24
fo0lish2-Feb-05 3:24 
GeneralRe: moving between forms Pin
padvit2-Feb-05 18:30
padvit2-Feb-05 18:30 
Generalstringparsing Pin
Stephan Wright2-Feb-05 2:42
Stephan Wright2-Feb-05 2:42 
GeneralRe: stringparsing Pin
Stephan Wright2-Feb-05 3:06
Stephan Wright2-Feb-05 3:06 
GeneralRe: stringparsing Pin
Scott Serl2-Feb-05 10:02
Scott Serl2-Feb-05 10:02 
GeneralRe: stringparsing Pin
Stephan Wright2-Feb-05 21:02
Stephan Wright2-Feb-05 21:02 
GeneralRe: stringparsing Pin
Scott Serl3-Feb-05 9:14
Scott Serl3-Feb-05 9:14 
GeneralRe: stringparsing Pin
Gavin Jeffrey2-Feb-05 3:17
Gavin Jeffrey2-Feb-05 3:17 
GeneralRe: stringparsing Pin
The Man from U.N.C.L.E.2-Feb-05 3:37
The Man from U.N.C.L.E.2-Feb-05 3:37 

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.