Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default Data match using VB script

I have two excel spread sheet, one is call
commercial.xls, another one is call pcmm.xls, I need to
match both xls files on columnA both has serial no, if
they match then I need to move username (Column B) from
commercial.xls to pcomm.xls of ColumnC, how to write the
vb script to do that
example: on commercial.xls
Serial # name
123 test1
234 test2

example: on pcomm.xls
Serial # name
123
234

so if serial # both files are match, then I need to move
name test1 and test2 to pcomm.xls files



Thanks for the help

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Data match using VB script

you can temporarily move (or copy) the worksheet from
commercial.xls to pcomm.xls and use VLOOKUP function.
Once all the corrections are made, you can copy and paste
values, then remove the temp sheet. Should go fairly
quick.

-----Original Message-----
I have two excel spread sheet, one is call
commercial.xls, another one is call pcmm.xls, I need to
match both xls files on columnA both has serial no, if
they match then I need to move username (Column B) from
commercial.xls to pcomm.xls of ColumnC, how to write the
vb script to do that
example: on commercial.xls
Serial # name
123 test1
234 test2

example: on pcomm.xls
Serial # name
123
234

so if serial # both files are match, then I need to move
name test1 and test2 to pcomm.xls files



Thanks for the help

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Data match using VB script

Yes, I know how to do that, but if I want write the vb
script that I read two files at same time, some kind of
if else statement using VB. any idea?

Thanks.

Lillian
-----Original Message-----
you can temporarily move (or copy) the worksheet from
commercial.xls to pcomm.xls and use VLOOKUP function.
Once all the corrections are made, you can copy and

paste
values, then remove the temp sheet. Should go fairly
quick.

-----Original Message-----
I have two excel spread sheet, one is call
commercial.xls, another one is call pcmm.xls, I need to
match both xls files on columnA both has serial no, if
they match then I need to move username (Column B) from
commercial.xls to pcomm.xls of ColumnC, how to write

the
vb script to do that
example: on commercial.xls
Serial # name
123 test1
234 test2

example: on pcomm.xls
Serial # name
123
234

so if serial # both files are match, then I need to

move
name test1 and test2 to pcomm.xls files



Thanks for the help

.

.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Download Data in Thai Script Victor Viguilla Excel Discussion (Misc queries) 0 June 1st 06 03:51 AM
Importing Data - Macro or Script Norgbort Machine Excel Worksheet Functions 0 May 3rd 06 09:53 PM
getting data from excel worksheet in to a script nuti Excel Discussion (Misc queries) 0 January 12th 06 08:48 AM
Match (Fucntion, Script, or Macro) No Name Excel Programming 5 June 24th 04 04:21 PM
Excel 2000/XP script to Excel97 script hat Excel Programming 3 March 2nd 04 03:56 PM


All times are GMT +1. The time now is 12:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"