Click here to Skip to main content
15,921,203 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralNewbie question Pin
Anonymous25-Jan-04 5:57
Anonymous25-Jan-04 5:57 
GeneralBackgroundimage of Treeview Pin
Member 84000225-Jan-04 2:12
Member 84000225-Jan-04 2:12 
Generalsetting register, associated file Pin
pnpfriend24-Jan-04 9:53
pnpfriend24-Jan-04 9:53 
GeneralStarting PowerPoint in a webbrowser control Pin
gregcost24-Jan-04 8:28
gregcost24-Jan-04 8:28 
GeneralChanging the color of a TabPage tab Pin
nvmoss24-Jan-04 3:09
nvmoss24-Jan-04 3:09 
GeneralRun an external application hidden Pin
gregcost23-Jan-04 7:03
gregcost23-Jan-04 7:03 
GeneralExcel feedback in VB6 Pin
clockit23-Jan-04 2:51
clockit23-Jan-04 2:51 
GeneralRe: Excel feedback in VB6 Pin
-Dr_X-24-Jan-04 13:27
-Dr_X-24-Jan-04 13:27 
Try using the WithEvents keyword.

Dim WithEvents xl As Excel.Application
Dim WithEvents Wb As Excel.Workbook
Dim WithEvents ws As Excel.Worksheet

You will have to create a reference to the Microsoft Excel Object library. I have 9.0 on my computer.

Below is a cut-n-past directly from the help file. Simply highlight the WorkBook or WorkSheet words in the Dim statements above and press F1 for help. The Microsoft Excel Visual Basic Reference Help window should appear.

CUT-N-PASTE from the Help File:
SheetChange Event

Occurs when cells in any worksheet are changed by the user or by an external link.

Syntax

Private Sub object_SheetChange(ByVal Sh As Object, ByVal Source As Range)

object Application or Workbook. For more information about using events with the Application object, see Using Events with the Application Object.

Sh A Worksheet object that represents the sheet.

Source The changed range.

Remarks
This event doesn't occur on chart sheets.

Not sure this is what your looking for but it may help.

Michael
GeneralRe: Excel feedback in VB6 Pin
clockit26-Jan-04 2:23
clockit26-Jan-04 2:23 
GeneralRe: Excel feedback in VB6 Pin
-Dr_X-26-Jan-04 3:28
-Dr_X-26-Jan-04 3:28 
GeneralReading XML String into DataSet (VB.NET) Pin
Nic Rowan23-Jan-04 2:29
Nic Rowan23-Jan-04 2:29 
GeneralRe: Reading XML String into DataSet (VB.NET) Pin
Jim Taylor23-Jan-04 3:25
Jim Taylor23-Jan-04 3:25 
GeneralRe: Reading XML String into DataSet (VB.NET) Pin
Nic Rowan23-Jan-04 3:33
Nic Rowan23-Jan-04 3:33 
GeneralRe: Reading XML String into DataSet (VB.NET) Pin
Guillermo Rivero23-Jan-04 3:30
Guillermo Rivero23-Jan-04 3:30 
GeneralRe: Reading XML String into DataSet (VB.NET) Pin
Nic Rowan23-Jan-04 3:35
Nic Rowan23-Jan-04 3:35 
GeneralDrawing custom captions on forms Pin
cnurse22-Jan-04 23:38
cnurse22-Jan-04 23:38 
GeneralDisable pasting in a textbox Pin
Anonymous22-Jan-04 23:16
Anonymous22-Jan-04 23:16 
GeneralRe: Disable pasting in a textbox Pin
Hesham Amin24-Jan-04 4:01
Hesham Amin24-Jan-04 4:01 
GeneralRe: Disable pasting in a textbox Pin
Dave Kreskowiak24-Jan-04 4:15
mveDave Kreskowiak24-Jan-04 4:15 
QuestionHow to use RtlMOveMemory in VB.NET? Pin
tacoboy22-Jan-04 22:31
tacoboy22-Jan-04 22:31 
AnswerRe: How to use RtlMOveMemory in VB.NET? Pin
RJGCarey29-Jan-04 7:24
RJGCarey29-Jan-04 7:24 
Generalc1 truedbgrid Pin
house_anno22-Jan-04 22:25
house_anno22-Jan-04 22:25 
GeneralRe: c1 truedbgrid Pin
gpa200026-Jan-04 5:16
gpa200026-Jan-04 5:16 
GeneralImporting data from Excel to Access using VB6 Pin
Member 78800722-Jan-04 19:50
Member 78800722-Jan-04 19:50 
GeneralRe: Importing data from Excel to Access using VB6 Pin
Roger Stewart23-Jan-04 1:58
professionalRoger Stewart23-Jan-04 1:58 

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.