Click here to Skip to main content
15,920,633 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
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 
Hi Priya,

regarding your question from direct mail, how you should re-arrange the colunms, I want to give you a first idea again - not knowing if it's the best way ever, but it seems simple and pragmatic:
Sub ReArrange()
    Dim strHeaders() As String
    Dim sortOrder As String
    Dim i As Integer
           
    ' define how the columns / headers are to be arranged
    sortOrder = "EmpID,EmpName,EmpSalary"
    ' read the string into an array
    strHeaders = Split(sortOrder, ",")
    
    ' loop through the array
    For i = LBound(strHeaders) To UBound(strHeaders)
        ' take care: i will be 0 first (array index starting with 0)
        ' so you can't assign i to a colunm --> i + 1 is fine
        MsgBox "Header of column " & i + 1 & " = " & strHeaders(i)
        ' here you find the respective header and copy your headers and/or data.
        ' I guess you can adapt the code sample from before already, can you?
    Next
End Sub
Hope that helps you - and don't forget to vote Wink | ;-) !
Thumbs Up | :thumbsup:
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 
GeneralRe: retrieve the salt from a mysql database for a password. [modified] Pin
DaveAuld11-Jul-10 13:00
professionalDaveAuld11-Jul-10 13:00 
GeneralRe: retrieve the salt from a mysql database for a password. Pin
Luc Pattyn11-Jul-10 13:42
sitebuilderLuc Pattyn11-Jul-10 13:42 
GeneralRe: retrieve the salt from a mysql database for a password. Pin
DaveAuld13-Jul-10 7:57
professionalDaveAuld13-Jul-10 7:57 
QuestionFile copy performance... one more time Pin
Sonhospa11-Jul-10 2:02
Sonhospa11-Jul-10 2:02 
AnswerRe: File copy performance... one more time Pin
Luc Pattyn11-Jul-10 11:01
sitebuilderLuc Pattyn11-Jul-10 11:01 
GeneralRe: File copy performance... one more time Pin
Sonhospa11-Jul-10 12:35
Sonhospa11-Jul-10 12:35 
GeneralRe: File copy performance... one more time Pin
Luc Pattyn11-Jul-10 12:51
sitebuilderLuc Pattyn11-Jul-10 12:51 

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.