PC Review


Reply
Thread Tools Rate Thread

coding for macro

 
 
murthy
Guest
Posts: n/a
 
      4th Mar 2008
I have a button named 'Same Data' and I need to assign code for click event:
code will trigger only on this condition:
Say the first row of data is row 18, the user highlights it and clicks the
button, then
the code should be able to:
1. add autonumber to column A , say row 18 col A was 1, then it should put 2
in row 19 col A.
2. it should copy row 18, col B thru G values and col S thru V values and
paste it on row 19 B:G and S:V.
3. If the user click the button again, the same should happen, i.e. row 20
col A becomes 3, and row 19 data is copied over to row 20 for the same cells
as in 2. The user can click on 'Same Data' button as many times as needed.
4.If user clicked the button by mistake, he should be able to delete the row
that has values pasted. I can add a delete button if need be to accomplish
it. But coding is needed for that piece also.
5. I also have a 'Sort' button, that sorts the column B, C, D and E values.
I have sent another request for coding for this functionality.
I think I am clear on what is required by coding. Hopefully, some expert can
tackle this with ease.
Thanks,
murthy


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help on macro coding for URL Eric Microsoft Excel Worksheet Functions 2 15th Mar 2008 02:02 PM
Help on macro coding fo URL Eric Microsoft Excel Programming 4 15th Mar 2008 01:27 PM
macro coding Andrew Microsoft Excel Programming 1 28th Jul 2004 06:06 AM
Macro coding Fish Microsoft Excel Misc 1 28th Jul 2004 05:51 AM
Macro Coding Danny Woolston Microsoft VB .NET 0 16th Sep 2003 10:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:35 AM.