Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how do i change or make this macro??? pictures and code included


i need to either make this from scratch or change it to suit my needs.
Firstly a link to the template it is from
http://www.exinfm.com/excel%20files/FY2000WhatIf.xls

the code is
Sub projection()

Dim revgrowth As Single, costpercent As Single, smgrowth As Single
devgrowth As Single, gagrowth As Single
Dim intincome As Integer, noncontitems As Integer, otherexps A
Integer
Dim taxrate As Single, avgshares As Integer

'dialog box gets displayed
With DialogSheets("dialog3")
If .Show = False Then
Exit Sub
End If

revgrowth = .EditBoxes(1).Text
costpercent = .EditBoxes(2).Text
smgrowth = .EditBoxes(3).Text
devgrowth = .EditBoxes(4).Text
gagrowth = .EditBoxes(5).Text
intincome = .EditBoxes(6).Text
otherexps = .EditBoxes(7).Text
taxrate = .EditBoxes(8).Text
avgshares = .EditBoxes(9).Text
End With

'calculations of projected values
Range("rev97").Value = (Range("rev96").Value + (Range("rev96").Value
revgrowth))
Range("cost97").Value = (Range("rev97").Value * costpercent)
Range("rand97").Value = (Range("rand96").Value + (Range("rand96").Valu
* devgrowth))
Range("sandm97").Value = (Range("sandm96").Value
(Range("sandm96").Value * smgrowth))
Range("ganda97").Value = (Range("ganda96").Value
(Range("ganda96").Value * gagrowth))
Range("intinc97").Value = intincome
Range("othexp97").Value = otherexps
Range("tax").Value = (Range("incb4tx").Value * taxrate)
Range("avgshares").Value = avgshares

Worksheets("income statements").Range("k3:O3").EntireColumn.Hidden
False
End Sub

and it looks like this

[image: http://i2.photobucket.com/albums/y10.../094c74ca.jpg]

thank you for any hel

--
dispelthemyt
-----------------------------------------------------------------------
dispelthemyth's Profile: http://www.excelforum.com/member.php...fo&userid=3247
View this thread: http://www.excelforum.com/showthread.php?threadid=52337

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default how do i change or make this macro??? pictures and code included

so what is the question?

Are you looking for someone you can hire to modify it?

--
Regards,
Tom Ogilvy


"dispelthemyth" wrote:


i need to either make this from scratch or change it to suit my needs.
Firstly a link to the template it is from
http://www.exinfm.com/excel%20files/FY2000WhatIf.xls

the code is
Sub projection()

Dim revgrowth As Single, costpercent As Single, smgrowth As Single,
devgrowth As Single, gagrowth As Single
Dim intincome As Integer, noncontitems As Integer, otherexps As
Integer
Dim taxrate As Single, avgshares As Integer

'dialog box gets displayed
With DialogSheets("dialog3")
If .Show = False Then
Exit Sub
End If

revgrowth = .EditBoxes(1).Text
costpercent = .EditBoxes(2).Text
smgrowth = .EditBoxes(3).Text
devgrowth = .EditBoxes(4).Text
gagrowth = .EditBoxes(5).Text
intincome = .EditBoxes(6).Text
otherexps = .EditBoxes(7).Text
taxrate = .EditBoxes(8).Text
avgshares = .EditBoxes(9).Text
End With

'calculations of projected values
Range("rev97").Value = (Range("rev96").Value + (Range("rev96").Value *
revgrowth))
Range("cost97").Value = (Range("rev97").Value * costpercent)
Range("rand97").Value = (Range("rand96").Value + (Range("rand96").Value
* devgrowth))
Range("sandm97").Value = (Range("sandm96").Value +
(Range("sandm96").Value * smgrowth))
Range("ganda97").Value = (Range("ganda96").Value +
(Range("ganda96").Value * gagrowth))
Range("intinc97").Value = intincome
Range("othexp97").Value = otherexps
Range("tax").Value = (Range("incb4tx").Value * taxrate)
Range("avgshares").Value = avgshares

Worksheets("income statements").Range("k3:O3").EntireColumn.Hidden =
False
End Sub

and it looks like this

[image: http://i2.photobucket.com/albums/y10.../094c74ca.jpg]

thank you for any help


--
dispelthemyth
------------------------------------------------------------------------
dispelthemyth's Profile: http://www.excelforum.com/member.php...o&userid=32479
View this thread: http://www.excelforum.com/showthread...hreadid=523374


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
how do i change or make this macro??? pictures and code included dispelthemyth Charts and Charting in Excel 0 March 17th 06 01:02 AM
Overtime Question Unlike Others (Pictures Included) C A Excel Worksheet Functions 2 October 28th 05 04:48 PM
Best template to inventory toy collection w/pictures included malextwo Excel Discussion (Misc queries) 1 July 10th 05 05:31 AM
Make a Change to Code Steved[_3_] Excel Programming 2 September 29th 04 11:31 PM
make macro change (delete) its own code as_sass Excel Programming 4 August 26th 04 07:15 PM


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

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"