home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > TechIMO Community > IMO Community
Ask a Tech Support Question (free)!

Hello

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2377
Discussions: 200,497, Posts: 2,374,295, Members: 245,824
Old June 30th, 2009, 02:23 AM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Jun 2009
Location: Cochrane, Alberta CA
Posts: 2
Hello

Hello:

I have 44+ years in computers and electronics to include some programming. I am an American living in Alberta Canada. I was raised in Indianapolis, Indiana. Presently I work for the Deaf and Hard of Hearing Society as an Equipment Coordinator; in other words, I push paper. But I also get rewarded with helping those that are Deaf and Hard of Hearing obtain access to advanced technology to assist in their daily lives. Nothing like watching their faces split into a grin when they can hear sounds they had not heard in years.

I myself wear Oticon EPOQ digital Behind the Ear Hearing Aids. I can still hear without them, but I'm also a Vietnam Veteran and due to weapons fire have lost partial hearing between 800 and 4,000 Hz, or in the area of Critical Word Understanding, which is associated with female voices. I have a good reason to not hear my partner and she can't prove I heard her. I have all the bells and whistles that go with them as well. A bluetooth streamer that is paired to my iPhone, notebook, and television. When music or audio is received by the bluetooth this information is passed to my hearing aids. I can honestly say I hear voices and music in my head.

Anyway, I joined this forum as I need help with re-learning Visual Basic. Years ago I could do a decent job in VB6, but this VB 2008 Express edition is kicking me in the rear end.

I'm trying to learn how to use an sxternal VB program to open an EXCEL worksheet, search for defined data such as a part number, Part Item, Cost, etc and then place that information into an EXCEL Invoice. This information would also be exported into another EXCEL workbook for statistical data that must be submitted to the government on a monthly basis. It would save time looking up information, create lesser mistakes and create a single point of reference for changes.

To start myself off, I used the example from MSDN. I set up the form as outlined and copied the sample code from the tutorial. I also added the EXCEL Preferences as directed.

I am sure most of you have seen the code so I will only add where my problem is.

__________________________________________________
PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim oXL As Excel.Application
Dim oWB As Excel.Workbook
Dim oSheet As Excel.Worksheet
Dim oRng As Excel.Range
' Start Excel and get Application object.
oXL = CreateObject("Excel.Application")
oXL.Visible = True

' Get a new workbook.
oWB = oXL.Workbooks.Add <------- I get a Missing Exception Error here.

oSheet = oWB.ActiveSheet

'Add table headers going into cell by cell.
oSheet.Cells(1, 1).Value = "First Name"
oSheet.Cells(1, 2).Value = "Last Name"
oSheet.Cells(1, 3).Value = "Full Name"
oSheet.Cells(1, 4).Value = "Salary"
'Format A1:B1 as bold, vertical alignment = center.
With oSheet.Range("A1", "D1")
.Font.Bold = True

.VerticalAlignment = Excel.XlVAlign.xlVAlignCenter <---- Here I get an error that XlVALign is not part of EXCEL.
EndWith

'Create an array to set multiple values at once.
Dim saNames(5, 2) AsString
saNames(0, 0) = "John"
saNames(0, 1) = "Smith"
saNames(1, 0) = "Tom"

__________________________________________________ ______

Has anyone seen this error before?

Any help would be greatly appreciated as I need to move forward with this project.

Tony
awparran is offline   Reply With Quote
Old June 30th, 2009, 04:36 AM     #2 (permalink)
Not an OWO yet, just OLD!
 
sharder8's Avatar
 
Join Date: Oct 2001
Location: Uh, Central Oregon
Posts: 5,629
Welcome to TIMO awparran, from the Folding@Home Team 111!


Harder
__________________
* NOSCE TE IPSUM *
* NOLI ME TANGERE *
sharder8 is offline   Reply With Quote
Old June 30th, 2009, 05:38 AM     #3 (permalink)
Junior Member
 
Join Date: Jun 2009
Location: Cochrane, Alberta CA
Posts: 2
Thanks

Thanks for the welcome.
awparran is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (1610)
FT HOOD attack: 7 killed 12 injured (58)
HELP!!! What do you think of this s.. (9)
Looking for a graphic card that wil.. (30)
Aero in Vista (7)
Assosiations (21493)
PC Modern Warfare 2: it's much wors.. (12)
core i7 extreme 975, nvidia 9400gt (8)
My 1st pc build (36)
Motherboards and my curse... (24)
slaving laptop drive (7)
[F@H SPAM 11/1/09]New month . . . n.. (32)
Building my first computer (13)
How to Ship a PC (16)
Recent Discussions
Win7 TrustedInstaller Permissions (2)
My 1st pc build (36)
hard drive problem (1)
Speed up Win 7 boot time a bit (1)
Hard Drive test program (2)
wireless westell versalink model 327w (1)
HELP!!! What do you think of this sys.. (9)
New build 10 second reboot cycle! Won.. (3)
New Linksys Routers (3)
sometime power/Amber light (0)
psp 3000 Rock band bundle (3)
Refurbished paintball guns and Free S.. (2)
Motherboards and my curse... (24)
Mic won't work. (2)
Weird Vista Internet Issue (2)
1st ever Harddisk benchmark thread (87)
high network traffic (0)
Excel password changed..... (3)
SSD or 2x640gb RAID 0 (4)
Weird symptoms after installing new C.. (1)
MFT corruption, program to fix? (1)
Aero in Vista (7)
ext. sound card laptop to stereo syst.. (1)
Domain user adjust time when it is Da.. (14)
How To Share Youtube Videos With Peop.. (1)


All times are GMT -4. The time now is 05:23 PM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28