Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Help with VBA Macro to automatically copy/paste as Values

I have a worksheet with an inherent circular calculation. To get the answers
to converge, I need to copy D85:W85 to row 55 as Values and hit shift+F9. I
keep doing this (about 5-6 times) till the numbers in row 55 and 85 are less
than 100 off.

Is there a way to automate this process with either a function or a macro?

Thanks in advance,

Anand

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help with VBA Macro to automatically copy/paste as Values


From your post it's unclear what process you want automated.

What values/formulae are in row 55, 85?
What's the circular calcuation?


--
MattShoreson
------------------------------------------------------------------------
MattShoreson's Profile: http://www.excelforum.com/member.php...fo&userid=3472
View this thread: http://www.excelforum.com/showthread...hreadid=470649

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Help with VBA Macro to automatically copy/paste as Values

Matt:
The worksheet is a part of a large financial model that projects a
partnership's tax capital accounts for the next 20 years.

The amount of non-recouse debt is reduced by the amout of deficit
restoration obligation a partner accepts (Row 85), which in turn depends on
the amount of non-recourse debt. This leads to the circularity.

I need a macro/vba script that can copy the Defit obligation in that is in
row 85 (D85:W85) and paste-special as values only on to Row 55 (D55:W55) and
hit ****-F9 to recalculate the worksheet only. The amount of non-recourse
debt is reduced by the values in Row 55. Once the sheet is recalculated, the
values in Row 85 change. I keep doing this copy-paste-specialValues about 5-6
times and hit shift F9 each time and the difference between Row55 and Row 85
becomes small (say less than 100).

I hope this is clearer ...

-Anand
"MattShoreson" wrote:


From your post it's unclear what process you want automated.

What values/formulae are in row 55, 85?
What's the circular calcuation?


--
MattShoreson
------------------------------------------------------------------------
MattShoreson's Profile: http://www.excelforum.com/member.php...fo&userid=3472
View this thread: http://www.excelforum.com/showthread...hreadid=470649


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help with VBA Macro to automatically copy/paste as Values


Sub Paste_Values()

Application.Calculation = xlCalculationManual
Range("D85:W85").Copy
Range("D55").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Activesheet.Calculate

End Sub

Baapi,
Bangalore


--
Baapi
------------------------------------------------------------------------
Baapi's Profile: http://www.excelforum.com/member.php...o&userid=27333
View this thread: http://www.excelforum.com/showthread...hreadid=470649

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
Need help with macro to copy, paste, and clear cell values Anthony[_5_] Excel Discussion (Misc queries) 8 December 21st 09 02:11 PM
copy paste values macro Wanna Learn Excel Discussion (Misc queries) 5 July 21st 09 04:44 PM
Macro for copy and paste values excelnerd Excel Discussion (Misc queries) 3 March 8th 08 06:51 PM
copy-paste as Values automatically Anand Excel Worksheet Functions 0 September 23rd 05 07:10 PM
Copy & Paste values macro...almost there? ste mac Excel Programming 5 November 2nd 03 10:49 PM


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