Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default vba for paste special

If you protect the cells with the formulas (and values you don't want changed)
and unprotect the cells that should be able to be changed
(format|cells|protection tab), then protect the worksheet (tools|protect|protect
sheet), then the problem may go away.

But if you copy|paste special|Formulas, both formulas and constants get pasted.

===
I guess I don't understand where you're getting the formulas to restore and
how/when you're going to copy them.

Chris wrote:

yes , I ment values and formulas

the sheet I am pasting from has both keyed info(values) and formulas for
totaling and other functions with the info

after pasting additional math is preformed on different parts

two different people have access to this sheet and if a number accidently
get changed you can't tell because the formulas aren't there anymore and the
end result never changes

I would rather the formulas remain intact so if a number gets changed it
would reflect in one of the totals amt and the error could be corrected

sheet has 500+ lines - easier to spot check a few totaled areas

Thanks at least I have an idea now to try - paste values first and then
again with the formulas

"Dave Peterson" wrote in message
...
You could do it twice

somerange.pastespecial paste:=xlpasteformulas
somerange.pastespecial paste:=xlpasteFormats

One right after the other.

You didn't really mean values, right?




Chris wrote:

Hi everyone - hope you can help

Is there any way to tweak the code to paste Values and Formulas and thats
all

can't get the code to allow multiple criteria, I don't want the
formatting
just the values and formulas

PasteSpecial Paste:=xlPasteFormulasAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False


--

Dave Peterson


--

Dave Peterson
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
Can't Copy and Paste or Paste Special between Excel Workbooks wllee Excel Discussion (Misc queries) 5 April 29th 23 03:43 AM
Paste and Paste Special No Longer Working - Excel 2003 SheriJ Excel Discussion (Misc queries) 2 January 15th 09 09: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
How do I capture user paste action and convert to Paste Special DonC Excel Programming 0 November 19th 04 01:43 PM
Dynamic Copy/Paste Special Formulas/Paste Special Values Sharon Perez Excel Programming 3 August 7th 04 09:49 PM


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