Click here to Skip to main content
15,915,509 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: click one treenode but it didn't response ,why Pin
Simon_Whale12-Jul-10 3:26
Simon_Whale12-Jul-10 3:26 
GeneralRe: click one treenode but it didn't response ,why Pin
sanyexian12-Jul-10 4:34
sanyexian12-Jul-10 4:34 
GeneralRe: click one treenode but it didn't response ,why Pin
Simon_Whale12-Jul-10 4:41
Simon_Whale12-Jul-10 4:41 
GeneralRe: click one treenode but it didn't response ,why Pin
sanyexian12-Jul-10 5:06
sanyexian12-Jul-10 5:06 
AnswerRe: click one treenode but it didn't response ,why Pin
Аslam Iqbal12-Jul-10 11:54
professionalАslam Iqbal12-Jul-10 11:54 
GeneralRe: click one treenode but it didn't response ,why Pin
sanyexian12-Jul-10 20:50
sanyexian12-Jul-10 20:50 
QuestionCopy data from one excel file to another excel file Pin
priyaahh12-Jul-10 0:49
priyaahh12-Jul-10 0:49 
AnswerRe: Copy data from one excel file to another excel file Pin
Syed Wayez Ahmed12-Jul-10 2:49
Syed Wayez Ahmed12-Jul-10 2:49 
Even tou ur problem was not clear i tried to help you with what i have understood.

You want to copy a sheet from a sheet, if a sheet has three columns below is the code.


Dim i As Integer
 i = 1        

   While Trim(sheet2.Cells(i, 1)) <> ""
      sheet1.cells(i,1)=sheet2.cells(i,1)
      sheet1.cells(i,2)=sheet2.cells(i,2)
      sheet1.cells(i,3)=sheet2.cells(i,3)
      i=i+1
   wend


If you want to keep the header as it is in sheet1 and want to copy the whole thing next to it, below is the code:

Dim i As Integer
 i = 1        

   While Trim(sheet2.Cells(i, 1)) <> ""
      sheet1.cells(i+1,1)=sheet2.cells(i,1)
      sheet1.cells(i+1,2)=sheet2.cells(i,2)
      sheet1.cells(i+1,3)=sheet2.cells(i,3)
      i=i+1
   wend


cheers

'S wayez

'http://wayezquotes.blogspot.com
GeneralRe: Copy data from one excel file to another excel file Pin
Syed Wayez Ahmed12-Jul-10 3:13
Syed Wayez Ahmed12-Jul-10 3:13 
GeneralRe: Copy data from one excel file to another excel file Pin
priyaahh12-Jul-10 5:22
priyaahh12-Jul-10 5:22 
AnswerRe: Copy data from one excel file to another excel file Pin
Sonhospa12-Jul-10 11:58
Sonhospa12-Jul-10 11:58 
GeneralRe: Copy data from one excel file to another excel file Pin
priyaahh12-Jul-10 18:32
priyaahh12-Jul-10 18:32 
GeneralRe: Copy data from one excel file to another excel file Pin
Syed Wayez Ahmed12-Jul-10 21:18
Syed Wayez Ahmed12-Jul-10 21:18 
AnswerRe: Copy data from one excel file to another excel file Pin
Sonhospa12-Jul-10 22:36
Sonhospa12-Jul-10 22:36 
AnswerRe: Copy data from one excel file to another excel file Pin
Sonhospa13-Jul-10 7:08
Sonhospa13-Jul-10 7:08 
GeneralRe: Copy data from one excel file to another excel file Pin
priyaahh13-Jul-10 7:17
priyaahh13-Jul-10 7:17 
GeneralRe: Copy data from one excel file to another excel file Pin
Sonhospa13-Jul-10 9:20
Sonhospa13-Jul-10 9:20 
Questionretrieve the salt from a mysql database for a password. [modified] Pin
malcomhfc11-Jul-10 9:09
malcomhfc11-Jul-10 9:09 
AnswerRe: retrieve the salt from a mysql database for a password. Pin
DaveAuld11-Jul-10 9:41
professionalDaveAuld11-Jul-10 9:41 
GeneralRe: retrieve the salt from a mysql database for a password. Pin
malcomhfc11-Jul-10 9:55
malcomhfc11-Jul-10 9:55 
GeneralRe: retrieve the salt from a mysql database for a password. Pin
malcomhfc11-Jul-10 10:10
malcomhfc11-Jul-10 10:10 
GeneralRe: retrieve the salt from a mysql database for a password. Pin
DaveAuld11-Jul-10 10:37
professionalDaveAuld11-Jul-10 10:37 
GeneralRe: retrieve the salt from a mysql database for a password. Pin
malcomhfc11-Jul-10 11:39
malcomhfc11-Jul-10 11:39 
GeneralRe: retrieve the salt from a mysql database for a password. Pin
DaveAuld11-Jul-10 12:28
professionalDaveAuld11-Jul-10 12:28 
GeneralRe: retrieve the salt from a mysql database for a password. Pin
malcomhfc11-Jul-10 12:50
malcomhfc11-Jul-10 12:50 

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.