Results 1 to 9 of 9

update macro when new data is added to a table

Threaded View

sharky1978 update macro when new data is... 01-12-2023, 04:14 AM
CheeseSandwich Re: update macro when new... 01-12-2023, 04:25 AM
sharky1978 Re: update macro when new... 01-12-2023, 04:29 AM
sharky1978 Re: update macro when new... 01-12-2023, 04:44 AM
Artik Re: update macro when new... 01-12-2023, 04:27 AM
CheeseSandwich Re: update macro when new... 01-12-2023, 04:39 AM
sharky1978 Re: update macro when new... 01-13-2023, 04:25 AM
Artik Re: update macro when new... 01-12-2023, 04:55 AM
Artik Re: update macro when new... 01-12-2023, 05:13 AM
  1. #1
    Registered User
    Join Date
    10-24-2018
    Location
    sunderland
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2404 Build 16.0.17531.20152) 64-bit
    Posts
    72

    update macro when new data is added to a table

    Hi all

    im new to macros, i have a macro that add 0 to blank cells,

    my question is how to i get it to look at new data that is added to the table as min only does the initial area i set. i have added what i have at the moment

    Sub add0_to_FGHI()
    '
    ' add0_to_FGHI Macro
    ' will add 0 to col fghi
    '

    '
    Range("F2,F2:F25,G2:G25,H2:H25,I2:I25").Select
    Range("I2").Activate
    Selection.Replace What:="", Replacement:="0", LookAt:=xlPart, _
    SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
    ReplaceFormat:=False, FormulaVersion:=xlReplaceFormula2
    End Sub
    Last edited by sharky1978; 01-13-2023 at 04:25 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 02-23-2024, 02:11 PM
  2. [SOLVED] Some formulas outside the table will not update when new records added to table
    By rezpez in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-21-2021, 02:09 PM
  3. Replies: 3
    Last Post: 03-28-2014, 12:04 PM
  4. Replies: 11
    Last Post: 01-13-2014, 05:15 AM
  5. Replies: 1
    Last Post: 03-02-2010, 10:40 PM
  6. Replies: 2
    Last Post: 11-03-2009, 03:30 PM
  7. macro with a pivot table where data is constantly added
    By mariusescu in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-10-2008, 02:38 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