Home

Automated Macro Run When New Row Is Added

%3CLINGO-SUB%20id%3D%22lingo-sub-889647%22%20slang%3D%22en-US%22%3EAutomated%20Macro%20Run%20When%20New%20Row%20Is%20Added%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-889647%22%20slang%3D%22en-US%22%3E%3CP%3EHello!%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20wondering%20if%20it%20was%20possible%20for%20a%20macro%20to%20be%20run%20any%20time%20a%20new%20row%20is%20added%20with%20data%20into%20the%20spreadsheet%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELong%20story%20short%2C%20we%20have%20data%20coming%20in%20from%20another%20source%20and%20populating%20into%20our%20spreadsheet.%20We%20can't%20assign%20a%20formula%20to%20the%20entire%20column%20because%20the%20incoming%20data%20will%20only%20populate%20what%20the%20program%20thinks%20is%20an%20empty%20row.%20So%20instead%20of%20data%20coming%20in%20and%20populating%20the%20next%20consecutive%20row%20it%20will%20jump%20to%20wherever%20the%20formula%20%22ends%22%20and%20populate%20the%20next%20row.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20the%20formula%3A%26nbsp%3B%3CSPAN%3E%3DCOUNTIF(B%242%3AB2%2CB2)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ELet%20me%20know%20if%20this%20makes%20sense%20or%20if%20it%20can%20be%20done.%20Thank%20you!%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-889647%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
stamez
Occasional Contributor

Hello! 

 

I was wondering if it was possible for a macro to be run any time a new row is added with data into the spreadsheet? 

 

Long story short, we have data coming in from another source and populating into our spreadsheet. We can't assign a formula to the entire column because the incoming data will only populate what the program thinks is an empty row. So instead of data coming in and populating the next consecutive row it will jump to wherever the formula "ends" and populate the next row.

 

Here is the formula: =COUNTIF(B$2:B2,B2)

 

Let me know if this makes sense or if it can be done. Thank you!

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
16 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
11 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies