+ Reply to Thread
Results 1 to 3 of 3

[VBA] Insert a formula into a cell from within VBA

  1. #1
    Registered User
    Join Date
    03-24-2013
    Location
    Quezon City, Philippines
    MS-Off Ver
    Excel 2010/2013
    Posts
    83

    [VBA] Insert a formula into a cell from within VBA

    Hi friends,

    Basically, I have the majority of my code worked out with previous help from the wonderful people here. But I am getting stuck with getting a formula into a cell from within VBA.

    If the formula were viewed from cell AF3 in the worksheet it would appear as:

    Please Login or Register  to view this content.
    This formula is repeated several times throughout the worksheet in just the column AF from AF3 down to the last column used.

    Could you help me with this one guys?

    Thanks and God bless!

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

    Re: [VBA] Insert a formula into a cell from within VBA

    Hi dylanrose,

    Try this:

    Please Login or Register  to view this content.
    HTH

    Robert
    ____________________________________________
    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

  3. #3
    Registered User
    Join Date
    03-24-2013
    Location
    Quezon City, Philippines
    MS-Off Ver
    Excel 2010/2013
    Posts
    83

    Re: [VBA] Insert a formula into a cell from within VBA

    Quote Originally Posted by Trebor76 View Post
    Hi dylanrose,

    Try this:

    Please Login or Register  to view this content.
    HTH

    Robert

    Woah that's fast!

    May I ask if this is possible too if I put this code in

    Please Login or Register  to view this content.
    so that it'll automatically fill in the said column?

    I'll try it now and I'll reply as fast as possible.
    Thanks so much Trebor76!

+ 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. Find cell with value from a column and insert formula in the cell to its left
    By konata in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-18-2014, 05:11 AM
  2. Replies: 5
    Last Post: 05-07-2013, 08:34 AM
  3. Using VBA to Insert Formula in Cell
    By LampCommandr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-17-2011, 12:25 PM
  4. Auto-Insert Adjacent Cell Contents to Cell Chosen by LARGE Formula
    By Aravisea in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-23-2009, 02:50 PM
  5. Find a cell and then insert a formula into adjacent cell
    By crowdx42 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-21-2006, 09:53 AM

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