+ Reply to Thread
Results 1 to 2 of 2

converting formulas into values using a macro in visual basic edit

  1. #1
    F.C
    Guest

    converting formulas into values using a macro in visual basic edit

    Currently I am using the following macro command to copy cells from one
    worksheet to another in visual basic editor


    strFrom = "[Data Source - Golf]Source Prior Year Statistics!"
    strTo = "[Data Source - Golf]Source Prior Year +1 Statistics!"

    CopyRangeAdd enumRange, strFrom & "J14:U14", strTo & "J14:U14"

    I am now attempting to copy formulas located in cells J14 to U14 into
    another worksheet, so that in the second worksheet they are values.

    Can anyone advise what needs to be cahnged in the above macro line

  2. #2
    Ron de Bruin
    Guest

    Re: converting formulas into values using a macro in visual basic edit

    Hi F.C

    You can use Value

    Sheets("Sheet2").Range("A1:A10").Value = Sheets("Sheet1").Range("A1:A10").Value


    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "F.C" <[email protected]> wrote in message news:[email protected]...
    > Currently I am using the following macro command to copy cells from one
    > worksheet to another in visual basic editor
    >
    >
    > strFrom = "[Data Source - Golf]Source Prior Year Statistics!"
    > strTo = "[Data Source - Golf]Source Prior Year +1 Statistics!"
    >
    > CopyRangeAdd enumRange, strFrom & "J14:U14", strTo & "J14:U14"
    >
    > I am now attempting to copy formulas located in cells J14 to U14 into
    > another worksheet, so that in the second worksheet they are values.
    >
    > Can anyone advise what needs to be cahnged in the above macro line




+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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