Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Build a Macro



I have a worksheet with three columns: account number, debit & credit.
For one range of cells I would like to build a macro that if there is an
amount in the credit column, to cut it and paste it to the debit column
and multiply it by -1. For another range of cells I would like to build
a macro that if there is an amount in the debit column, to cut it and
paste it to the credit column and multiply it by -1. I hope someone can
help me.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Build a Macro

More info would be helpful.

suppose you find an "amount" in cell a6. Do you want it to goto b6 or to the
end of the line in col B?
Do you want the original "amount" to stay where it was - or to be cut?

Mind reading forum is down the road.

"Dale Avison" wrote in message
...


I have a worksheet with three columns: account number, debit & credit.
For one range of cells I would like to build a macro that if there is an
amount in the credit column, to cut it and paste it to the debit column
and multiply it by -1. For another range of cells I would like to build
a macro that if there is an amount in the debit column, to cut it and
paste it to the credit column and multiply it by -1. I hope someone can
help me.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Build a Macro


I would like the amount in column c to move to column b, therefore
nothing should be left in column c.

Thanks.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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
Macro to build table Victoria612 Excel Worksheet Functions 0 May 27th 10 10:39 PM
Macro to build table Victoria612 Excel Worksheet Functions 1 May 27th 10 09:50 PM
How do I build this Macro? Omakbob Excel Discussion (Misc queries) 4 September 28th 05 09:26 PM
How do I build a Macro that can identify wooksheet names peter147 Excel Discussion (Misc queries) 4 May 22nd 05 04:26 PM
Can I build 'goal seek' facility into a macro? sprasanna Excel Discussion (Misc queries) 1 April 28th 05 08:07 AM


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