Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copy and Paste Values ..... then Reverse !


Help please !

I am trying to write a macro that will copy and paste values in
highlighted range if the value in another cell is "Y" and to leave th
formula in the cell if that value is blank.

As an example, a simple range of cells headed open, add, take, close
freeze in range A1:E5 (as per below);

4708

I am looking for a macro that would (when run) allow rows 3 and 4 to b
copied and pasted as values, so that changes to row 2 do not have
knock on effect to rows 3 and 4.

This macro would need to be be reversed, ie. when the Y in row 3 i
removed then the formulae are replaced.

This is a simple example and the formaule are quite complex in realti
so reversing the macro as opposed to re-inserting the formulae into th
copied and pasted as values cells would be favourable (as I am not a
expert in writing VB and to start having to code complex formulae migh
be a little too much)!

If you can help please do !

Many thanks

+-------------------------------------------------------------------
|Filename: a.txt
|Download: http://www.excelforum.com/attachment.php?postid=4708
+-------------------------------------------------------------------

--
jagstirlin
-----------------------------------------------------------------------
jagstirling's Profile: http://www.excelforum.com/member.php...nfo&userid=110
View this thread: http://www.excelforum.com/showthread.php?threadid=53721

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
Copy and paste up to values in last row Scott Excel Discussion (Misc queries) 2 September 23rd 09 10:23 PM
In Excel: add a Paste-Special Option to paste IN REVERSE ORDER. stan-the-man Excel Worksheet Functions 7 June 14th 06 08:10 PM
Copy/Paste how to avoid the copy of formula cells w/o calc values Dennis Excel Discussion (Misc queries) 10 March 2nd 06 10:47 PM
how to paste the values in reverse order in workbook nayeemoddin Excel Discussion (Misc queries) 2 December 6th 04 08:35 AM
How do i compare values from two sheet and copy & paste if values match? rozb Excel Programming 0 March 5th 04 12:06 AM


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