events in excel vba
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and Help » Events In Excel VBA

Events In Excel VBA

The UK's most regular instructor-led training courses.
Training information: excel-courses · Microsoft+excel+training · VBA courses London UK

resolvedResolved · Low Priority · Version Standard

Events In Excel VBA

James has attended:
Excel VBA course

by - delegate James [3 posts] (2008 Feb 20 Wed, 17:40) replyReply

Hi,

I am trying to create a macro that, every time a celll value changes by a tenth of a point (either up or down), then excel speaks the new value in the cell.

The code below is what I have implemented:
1. Open the Visual Basic Edit (Tools>Macro>Visual Basic Editor)
2. In the left window, right click Sheet1 and select View Code.
3. At the top of the Book1 - Sheet1 Code dialog box, there are two dropdowns. From the left dropdown select Worksheet.
4. Copy and Paste the following code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1" Then
Target.Speak
End If
End Sub

There are two problems, in order of importance, with the above code:
1. If cell "A1"" contains a formula, it does not recognise the fact that a the cell value has changed and thus does not speak the new value. (This is vital as the cell I want excel to speak is updated automatically from an external application running simulatneously)
2. It speaks when the value changes by less than a tenth of a point.

Any help would be greatly appreciated, including a relevant text book recommendation.

Many thanks!

James

Excel VBA 2 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003/XP 2008 Jul 17 Thu + 18 Fri Bloomsbury 3 book now £475 £495
2003/XP 2008 Jul 30 Wed + 31 Thu Bayswater 5 book now £450 £485
2003/XP 2008 Aug 7 Thu + 8 Fri Bloomsbury 6 book now £450 £485
2003/XP 2008 Aug 14 Thu + 15 Fri Bloomsbury 5 book now £450 £485
2003/XP 2008 Aug 26 Tue + 27 Wed Bayswater 6 book now £450 £485
2003/XP 2008 Sep 8 Mon + 9 Tue Bayswater 7 book now £345 £399
Full Schedule: See all 48 Excel VBA course dates.
Bookings currently available until 26th November 2009.

RE: Events In Excel VBA

by - trainer Jacob silver contributer[83 posts] (2008 Apr 24 Thu, 14:08) replyReply

Hi James

Our apologies for missing a response to you. If you are still looking for a solution, we would recommend the following:

consultancy services.

3 steps to organising your consultancy

1) Profile & review your requirements
(email us some samples of your work, and list of top outcomes)

2) Receive proposal
- Scope of work
- Timeframes
- Pricing

3) Sign our consultancy agreement

If you wish to follow this then please let us know.

Regards

Jacob


Related articles

· Advanced Excel Training - takes you to the next level
· How to Create Better Excel Spreadsheets: Part Four
· Do You Really Need Excel VBA Training?
· Reasons Why VBA for Excel Training Fails
· Microsoft Excel Training: Essential for Today's Employees

Please browse our web site to find out more about
excel-courses and other Microsoft training courses.

Excel tip:

Creating Quick Column Charts

Select the information you want to appear in the chart and press F11. This creates a new chart on a seperate worksheet.

View all Excel hints and tips

Institute of IT Training - Accredited Training Provider Institute of IT Training - Accredited Training Provider Prodigy Platinum Learning Partner Microsoft Office Specialist Authorised Testing Centre

Microsoft Registered Partner
microsoft office
ms office project server

Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information
AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz