Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-06-2011, 05:11 AM
rajpeter rajpeter is offline vba code in excel Windows XP vba code in excel Office 2003
Novice
vba code in excel
 
Join Date: Sep 2011
Posts: 6
rajpeter is on a distinguished road
Default vba code in excel

hi
i need your help i have in sheet column 2
like Peter, RAJ
but i am comparing with other excel sheet 1 like RAJ,PETER
i am comparing sheet 2 against sheet1. here i am showing part of the code
how do i write
Code:
If Not IsEmpty(FullName) Then
intFullNameNum = InStr(1, FullName, ",")
If intEmpNameNum >= 1 Then 'Real Person's Name strEmpLNameChrUpper = UCase(Mid(EmpFullName, 1, 1))
strEmpFNameChrUpper = UCase(Mid(EmpFullName, intEmpNameNum + 1, 1))
strEmpLName = Trim(strEmpLNameChrUpper & LCase(Mid(strEmpFullName, 2, intEmpNameNum - 2)))
strEmpFName = Trim(strEmpFNameChrUpper & LCase(Mid(strEmpFullName, intEmpNameNum + 2)))
strEmployeeBothName = strEmpLName & ", " & strEmpFName
 
 
the above code shows PETER,RAJ
BUT IN SHEET 2 shows PETER, RAJ
 
Set M = Worksheets("Sheet2").Columns(2).Find(What:=x, MatchCase:=True)
THNAKS
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA Code in Project to Wake Up/Open Excel OTPM Excel Programming 2 05-23-2011 02:24 PM
vba code in excel Any tutorial same as to this excel sheet with code? Learner7 Excel 1 05-18-2010 05:31 PM
vba code in excel VB Code in Excel Active worksheet shakilhyd Excel 2 05-17-2010 07:50 AM
Excel ->VB code for Checkbox (control toolbox) kirkstyle Excel 0 08-16-2006 04:17 PM
Delete excel files by code in Access Barry Richardson Office 0 06-13-2005 06:26 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:32 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft