LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default just copy the data, not the fuctions

Hi,

In the following code the data in every row from columns i:L from the
current sheet is copied to the OnlyData sheet if there are any entries

in column F of the current sheet.

------------------------------------------------------------------------

Dim range2_for_the_OnlyData As Range

Set range2_for_the_OnlyData =
Columns("f").SpecialCells(xlCellTypeConstants).Ent ireRow
Set range2_for_the_OnlyData = Intersect(range2_for_the_OnlyData,
Range("i:L"))
range2_for_the_OnlyData.Copy

Sheets("OnlyData").Range("j25").PasteSpecial xlPasteValues


Application.CutCopyMode = False
--------------------------------------------------------------------------


But this works only if I have data in columns i:L.

If there are functions, etc then the above code does not work.
How do I change the above code to ensure that ALL the data (in
columns i:L) gets copied from the current sheet to the OnlyData
sheet if there are any entries in column F of the current sheet.
In other words, the results of all functions should be copied and
not the functions themselves.

Thanks.


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

 
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 to use pivot data in formula or fuctions? summerhayashi Excel Discussion (Misc queries) 1 July 28th 09 07:49 PM
About Fuctions Excel Worksheet Functions Excel Worksheet Functions 1 June 29th 08 12:54 AM
Creating Nested If Fuctions Debra Lisa Excel Worksheet Functions 3 August 26th 07 01:16 PM
Using Worksheet Fuctions with Macros [email protected] Excel Discussion (Misc queries) 0 August 1st 06 05:37 PM
Equalls fuctions WAZA Excel Worksheet Functions 2 July 1st 06 04:22 PM


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