+ Reply to Thread
Results 1 to 6 of 6

Change VBA Macros Recording Script to values

  1. #1
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    900

    Change VBA Macros Recording Script to values

    Hello,

    I need to convert the below script which recorded through vba recording. But when i run it is is showing the formulas. I want the actual values not the formulas in the cells.

    Can any one help me to write a professionalism script.

    Thanks for your help in advance.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Change VBA Macros Recording Script to values

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    900

    Re: Change VBA Macros Recording Script to values

    Thank a lot bob it works as i want can you help me for one more thing please.

    I have a formula below which i want to change to averageifs from sumif Can you do it for me please.

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,523

    Re: Change VBA Macros Recording Script to values

    Ah, Bob has already provided a nifty solution.
    Last edited by Trebor76; 03-29-2012 at 06:13 AM.
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  5. #5
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Change VBA Macros Recording Script to values

    That formula makes no sense to me, you seem to be dividing one sum by another and subtracting 1 and testing that, but the "" seems to be in the IFERROR function.

  6. #6
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    900

    Re: Change VBA Macros Recording Script to values

    Thanks for your solution. Topic marked as solved and reputation added.

+ 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