#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default macros

i am trying to make a macro that will take a number in V1
then apply a formula and put the answer in V2. then when
it is hit again it will take the number in V2 and apply a
formula and put the answer in V3. and so on(v3 to V4.....)
Thank you in advanced,
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default macros

This might work if you already have a number in a1. If not, execute fixit
macro
Place both in the worksheet module

Sub fixit()
Application.EnableEvents = True
End Sub

Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Target.Column = 1 Then
x = Cells(65536, 1).End(xlUp).Row - 1
Target.Offset(x + 1) = Target.Offset(x) * [a1]
End If
Application.EnableEvents = True
End Sub


--
Don Guillett
SalesAid Software
Granite Shoals, TX

"Ashby" wrote in message
...
i am trying to make a macro that will take a number in V1
then apply a formula and put the answer in V2. then when
it is hit again it will take the number in V2 and apply a
formula and put the answer in V3. and so on(v3 to V4.....)
Thank you in advanced,



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
Excel 2007 macros - how to merge 5 macros together into one Sue Excel Discussion (Misc queries) 1 April 16th 08 08:36 PM
Macros warning always shows up, even if all macros removed Joe M Excel Discussion (Misc queries) 1 December 20th 07 04:45 AM
Macros - copying macros from one computer to another TT Excel Discussion (Misc queries) 18 December 14th 06 03:24 AM
Training: More on how to use macros in Excel: Recording Macros ToriT Excel Worksheet Functions 2 February 10th 06 07:05 PM
List the Macros that can be executed from Tools-Macros Rob Bovey Excel Programming 1 July 10th 03 05:34 PM


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

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"