Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default cannot copy formulas

I use this line in my macro

Range("b2:z2").Select
Range(doel).Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False

Somehow excel copies also the values.
Whay am i doing wrong?

Greetings Hans


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default cannot copy formulas

I use this line in my macro

Range("b2:z2").Select
Application.CutCopyMode = False
Selection.Copy Range(doel).Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False

Somehow excel copies also the values.
Whay am i doing wrong?
Greetings Hans


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default cannot copy formulas

'-------------------------------------
Range("b2:z2").Select
Range(doel).Select
'--------------------------------------
You immediately change the selection, so the first line is not needed.
'-
You say that values are pasted.
1. You will need to check your formulas are correct, because if the
refer to the same cells then they will of course show the same values.

2. Or, perhaps, you have Calculation set to Manual when the cells woul
not change until a re-calculation occurs.


Hope this helps

--
Message posted from http://www.ExcelForum.com

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 formulas tgi Excel Discussion (Misc queries) 1 October 1st 09 06:25 AM
automatically copy formulas down columns or copy formulas all the HowlingBlue Excel Worksheet Functions 1 March 16th 07 11:11 PM
How do I copy formulas but using the same range each time I copy Laffin Excel Worksheet Functions 2 June 22nd 06 04:17 PM
Copy Value not formulas sungen99 Excel Worksheet Functions 1 January 3rd 06 03:51 PM
Range COPY function - how to copy VALUES and not formulas James Cooke Excel Programming 1 August 21st 03 07:04 PM


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