Click here to Skip to main content
15,892,643 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: search files on hard drive by vb 6.0 Pin
Eddy Vluggen7-May-10 0:20
professionalEddy Vluggen7-May-10 0:20 
GeneralRe: search files on hard drive by vb 6.0 Pin
ejaz_pk7-May-10 0:24
ejaz_pk7-May-10 0:24 
GeneralRe: search files on hard drive by vb 6.0 Pin
Eddy Vluggen7-May-10 0:39
professionalEddy Vluggen7-May-10 0:39 
AnswerRe: search files on hard drive by vb 6.0 Pin
Chris Quinn12-May-10 5:25
Chris Quinn12-May-10 5:25 
QuestionLinkLabel redirect Pin
Syasyaaa6-May-10 20:56
Syasyaaa6-May-10 20:56 
AnswerRe: LinkLabel redirect Pin
εїзεїзεїз6-May-10 22:13
εїзεїзεїз6-May-10 22:13 
Questionto transfer data to each sheet of a excel workbook [modified] Pin
sanyexian6-May-10 18:38
sanyexian6-May-10 18:38 
AnswerRe: to transfer data to each sheet of a excel workbook Pin
Johan Hakkesteegt6-May-10 20:20
Johan Hakkesteegt6-May-10 20:20 
Where to start...

I am not exactly sure what you are trying to achieve, and I take it you assembled this code from examples, or copied it as is.

So let's start from the beginning. If you suspect that this code has errors, the first thing you should do is put all the code inside the sub into a try catch clause:
Private Sub OperateExcel()
  Try
    'the rest of the code here'
  Catch ex as Exception
    MsgBox(ex.tostring)
  End Try
End Sub


Then at least you'll find out if this code works at all. After that comes the important part, comparing what this code does to what you want it to do.
A simple way to start is to write comments into the code. One comment for each step, and then fill in the code bits doing each step.
My advice is free, and you may get what you paid for.

GeneralRe: to transfer data to each sheet of a excel workbook [modified] Pin
sanyexian8-May-10 15:26
sanyexian8-May-10 15:26 
AnswerRe: to transfer data to each sheet of a excel workbook Pin
Sonhospa6-May-10 23:06
Sonhospa6-May-10 23:06 
GeneralRe: to transfer data to each sheet of a excel workbook Pin
Johan Hakkesteegt6-May-10 23:30
Johan Hakkesteegt6-May-10 23:30 
GeneralRe: to transfer data to each sheet of a excel workbook Pin
Sonhospa7-May-10 4:56
Sonhospa7-May-10 4:56 
GeneralRe: to transfer data to each sheet of a excel workbook [modified] Pin
sanyexian8-May-10 15:17
sanyexian8-May-10 15:17 
AnswerRe: to transfer data to each sheet of a excel workbook Pin
Sonhospa10-May-10 22:47
Sonhospa10-May-10 22:47 
QuestionRunning New Processes on a Remote Computer with Output Pin
Stinebaugh6-May-10 16:25
Stinebaugh6-May-10 16:25 
AnswerRe: Running New Processes on a Remote Computer with Output Pin
Johan Hakkesteegt6-May-10 20:31
Johan Hakkesteegt6-May-10 20:31 
GeneralRe: Running New Processes on a Remote Computer with Output Pin
Stinebaugh7-May-10 6:37
Stinebaugh7-May-10 6:37 
GeneralRe: Running New Processes on a Remote Computer with Output Pin
Johan Hakkesteegt9-May-10 21:55
Johan Hakkesteegt9-May-10 21:55 
Questiongetting complete name of account NT server Pin
sal216-May-10 10:00
sal216-May-10 10:00 
AnswerRe: getting complete name of account NT server Pin
Stinebaugh6-May-10 16:30
Stinebaugh6-May-10 16:30 
GeneralRe: getting complete name of account NT server Pin
sal216-May-10 20:33
sal216-May-10 20:33 
GeneralRe: getting complete name of account NT server Pin
Stinebaugh7-May-10 6:22
Stinebaugh7-May-10 6:22 
GeneralRe: getting complete name of account NT server Pin
sal217-May-10 11:56
sal217-May-10 11:56 
QuestionMultithreading slower? [modified] Pin
NikWing6-May-10 5:36
NikWing6-May-10 5:36 
AnswerRe: Multithreading slower? Pin
Luc Pattyn6-May-10 5:52
sitebuilderLuc Pattyn6-May-10 5:52 

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.