Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default This should be an easy one for most programmers but im having some trouble...

I'm creating a database with information on new clients
(Sheet1)and their representatives and im trying to find a
way to program new entries so that I when I type in the
Representatives initials, excel will copy the row of
information and paste the entire row onto the next blank
line of the corresponding representatives sheet(each
representative also has their own sheet. Can some one
PLEASE help me out with this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 340
Default This should be an easy one for most programmers but im having some trouble...

Brent, there are several ways to solve.

One would be to use the Worksheet_Change event. Right click on the sheet
tab and select view code. Then select Worksheet in the left dropdown and
Worksheet_Change in the right. This will create an empty procedure that is
triggered when you change a cell. You would then have to write code to
check to see if the modified cell is one that should trigger the copy
action.

Another approach is to create a macro in a regular module that displays a
dialog with a listbox which lists the individual sheets. You could then
select the destination sheet and click on the OK to copy the active row.
This would avoid issues like two people having the same initials, or mis
typing initials. It would also allow you to select a range of rows and copy
them versus a row at a time.

Robert Flanagan
Macro Systems
Delaware, U.S. 302-234-9857
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel



"Brent" wrote in message
...
I'm creating a database with information on new clients
(Sheet1)and their representatives and im trying to find a
way to program new entries so that I when I type in the
Representatives initials, excel will copy the row of
information and paste the entire row onto the next blank
line of the corresponding representatives sheet(each
representative also has their own sheet. Can some one
PLEASE help me out with this?



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
Easy one... but not for me :S ChrisMattock Excel Worksheet Functions 7 July 3rd 06 09:49 PM
new user with easy question? not easy for me speakeztruth New Users to Excel 5 June 3rd 05 09:40 PM
RANT - am I the only one that gets the impression that the programmers truly Marc New Users to Excel 7 April 24th 05 05:00 PM
snake relocate to programmers :) Mark[_17_] Excel Programming 2 June 14th 04 08:41 AM
An easy one! Dr. Schwartz[_3_] Excel Programming 2 January 19th 04 12:33 PM


All times are GMT +1. The time now is 03:04 AM.

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"