+ Reply to Thread
Results 1 to 3 of 3

Require a code to insert formula in visible cell range only

  1. #1
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Require a code to insert formula in visible cell range only

    Hi friends,
    Please suggest me a code to insert a formula in visible cells range. I have filter the data and now I want to add a formula in a column 'ag9' '=IF(P9="","",DAY(P9))' and copy down in the visible cell range only.

    Please suggest me a code to perform this action.

    My data is in range 'b8:ag5000'. First I have filter the column 'ag' month, and now I want to delete that formula and insert the above mentioned formula in column 'ag' visible cell range filtered previously.

    Thank you.

    Regards,

    Mukesh

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Require a code to insert formula in visible cell range only

    Special cells has a visible cells only property that works really well in this situation:

    Please Login or Register  to view this content.
    Last edited by stnkynts; 01-12-2014 at 12:11 PM.

  3. #3
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Re: Require a code to insert formula in visible cell range only

    Hi stnkynts,
    Excellent! It's working fine as per my requirement. Thank you for teaching me a new property of excel to write a code in short.

    Thank you very much for your kind guidance.

    Sincerely,

    Mukesh

+ 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. [SOLVED] Code to select visible cell range only
    By mukeshbaviskar in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-23-2013, 03:05 AM
  2. Need code to select a cell range that has visible values
    By Big Chris in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-27-2013, 12:18 PM
  3. Vba code to copy and paste second visible cell to other worksheet range then the next
    By Justin25150 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-09-2012, 09:03 AM
  4. [SOLVED] Require Help - Require Formula for Multiple values in both columns
    By krodge in forum Excel General
    Replies: 6
    Last Post: 01-13-2012, 03:42 AM
  5. Insert formula in a cell through VB code.
    By ebin charles in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-28-2011, 04:55 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