+ Reply to Thread
Results 1 to 2 of 2

VBA code to insert formula with automatic cell referencing & size

  1. #1
    Registered User
    Join Date
    03-06-2012
    Location
    Newport Beach, CA
    MS-Off Ver
    Excel 2010
    Posts
    13

    VBA code to insert formula with automatic cell referencing & size

    Hi,

    In the attached spreadsheet, I am trying to insert the following formula starting in cell C2 then to automatically fill to the last cell based on the number of IDs in column A.
    Please Login or Register  to view this content.
    So I need the VBA code to:
    - automatically change for cell references
    - automatically fill to the last row of data so if I were to add another row ID, the macro would recognize that and fill accordingly.
    Book5.xlsx

    Thanks in advance,

    Kevin

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: VBA code to insert formula with automatic cell referencing & size

    Hi vbatech,

    Try using below macro:-

    Please Login or Register  to view this content.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

+ 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