LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 80
Default Is this possible?

Hi All,

I have written a routine that matches 2 staff lists that may contain up to
5000 staff and the exercise needs to be repeated approx 140 times so you can
see the neccesity of automating the process. However there are the
inevitable unmatched entry's which need manual intervention. The matching
cannot be done on surname only as there are many duplicates.

1) This is an example of the unmatched entries before manual intervention

A B C D E F
G H I J
1 SMITHWILL SMITH WILL xyz abc
2
SMITHWILLIAM SMITH WILLIAM xyz abc

2) This is how it needs to look after manual intervention

A B C D E F
G H I J
1 SMITHWILL SMITH WILL xyz abc SMITHWILL SMITH
WILLIAM xyz abc

This was achieved by clicking on SMITHWILLIAM and using a keyboard shortcut
to run the following code (there are many more columns associated to
smithwilliam in the actual template) then dragging the whole selection up 1
row.

3) Range(ActiveCell, ActiveCell.Offset(0, 12)).Select

Secondly, and essentially, so that columns A & F are an exact match, the
following code is run by kb shortcut

4) ActiveCell.Formula = "=UPPER(A" & ActiveCell.Row & ")"

The problem with that is the user is very likely to forget to run the 2nd
bit of code.

So what l am trying to achieve is this:
1) The user selects SMITHWILLIAM and runs code to select all associated
columns, as per code in 3)
2) The user drags the selected range to the appropriate row
3) Code is automatically run to copy contents of column A to column F, as
per code in 4)

It seems to me that using the worksheet_change event is not appropriate
because of the number cells being changed by the various other routines that
copy, paste, move, match etc.

Hope l have explained the problem clearly.

All suggestions / possible solutions gratefully recieved

Regards

Michael Beckinsale


 
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



All times are GMT +1. The time now is 01:03 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"