#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default automatically divid

How I can make the number been divided automatically in the cell without
adding the divided number or make a formula like =A1/12 .
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default automatically divid

You need to make a worksheet Change macro that when you enter data in certain
cells it will automatically will do the division. Usually you only want this
done in certain columns or certain rows and not the entire worksheet

Sub worksheet_change(ByVal target As Range)

If target.Column = 6 Then
Application.EnableEvents = False
target.Value = target.Value / 6
Application.EnableEvents = True
End If

End Sub

w

"Ali.Abughrabieh" wrote:

How I can make the number been divided automatically in the cell without
adding the divided number or make a formula like =A1/12 .

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
Automatically Run macro Anift Setting up and Configuration of Excel 2 November 25th 06 02:52 PM
alphabetize - automatically mandyjo830 Excel Worksheet Functions 2 November 14th 06 09:30 PM
St automatically changes to So lkaneft Excel Discussion (Misc queries) 2 June 30th 06 03:43 PM
Macro to automatically run Pam C Excel Discussion (Misc queries) 1 May 5th 05 02:35 PM
Run macro automatically. Excel macro New Users to Excel 7 April 19th 05 04:01 PM


All times are GMT +1. The time now is 10:05 PM.

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

About Us

"It's about Microsoft Excel"