+ Reply to Thread
Results 1 to 4 of 4

copy only values (not formulas) to new sheet

  1. #1
    Registered User
    Join Date
    06-02-2014
    Posts
    17

    copy only values (not formulas) to new sheet

    Hi!

    I have this code:

    Please Login or Register  to view this content.
    I want only values to be copied, not formulas.

    Thanks for help!

    PS: I'm really sorry for not posting the code as required. Hopefully it is fixed now.
    Last edited by koli99; 06-04-2014 at 02:57 AM.

  2. #2
    Forum Contributor
    Join Date
    03-21-2012
    Location
    Ho Chi Minh city
    MS-Off Ver
    Excel 2003
    Posts
    180

    Re: copy only values (not formulas) to new sheet

    PHP Code: 
    Option Explicit
    Sub Koli99
    ()
     
    Dim i As Long:                             Dim x As String
     Dim wS 
    As WorksheetwS2 As Worksheet

     Set wS 
    Sheets("DELOVNI NALOG")
     For 
    Each wS2 In ActiveWorkbook.Worksheets
        
    If IsNumeric(wS2.NameThen
    '        wS2.Activate   '
            
    On Error Resume Next
            
    For 5 To 100            'For..Next:=> ws2.[Z5].resize(95,14).ClearContents '
                
    wS2.Range(wS2.Cells(i"Z"), wS2.Cells(i"AM")).ClearContents
    '            wS2.Activate   '
            
    Next i
            On Error 
    GoTo 0
        End 
    If
     
    Next wS2
    ' wS.Activate   '
     
    On Error Resume Next
     MsgBox wS
    .Range("D" Rows.Count).End(3)(1).Row
     
    If wS.Range("D" Rows.Count).End(3)(1).Row 5 Then Exit Sub
     
     
    For 5 To wS.Range("D" Rows.Count).End(3)(1).Row
        x 
    Range("D" i).Value
        Sheets
    (x).Range("Z" Sheets(x).Range("D" Rows.Count).End(3)(5).Row).Value _
            wS
    .Range(wS.Cells(i"Z"), wS.Cells(i"AM")).Value
    '    wS.Activate    '
     
    Next i
     
    If Err 0 Then On Error GoTo 0
    End Sub 

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: copy only values (not formulas) to new sheet

    Sa DQ

    I suggest you to refresh your page before to reply in a thread.

    In this case OP complied with Mod request at 07:57 AM, but you posted your reply at 07:56 AM.

    This time is only 1 minute difference and we accept it...but if the difference was biggest you would have problem with rule#7 of the forum...
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: copy only values (not formulas) to new sheet

    Please Login or Register  to view this content.
    INTO

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Copy and paste values into next sheet. (blank cells contain formulas)
    By Vlad717 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-14-2013, 06:54 AM
  2. Copy and Paste Values only, not formulas, in a protected sheet
    By YMGR in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-30-2012, 07:52 AM
  3. Copy sheet with Values instead of Formulas
    By manny_cb in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-20-2009, 09:14 AM
  4. Copy & send single sheet with values and no formulas
    By Sven in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-26-2008, 04:56 PM
  5. Copy & send single sheet with values and no formulas
    By az-man in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-19-2007, 10:48 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1