• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Table Auto Insert New Row with Formula After Hit Enter|VBA & Macros|Excel Forum|My Online Training Hub

You are here: Home / Table Auto Insert New Row with Formula After Hit Enter|VBA & Macros|Excel Forum|My Online Training Hub

vba course banner

Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumVBA & MacrosTable Auto Insert New Row with Form…
sp_PrintTopic sp_TopicIcon
Table Auto Insert New Row with Formula After Hit Enter
Avatar
Mariyaulfa Abdul Hamid
Member
Members
Level 0
Forum Posts: 6
Member Since:
July 27, 2019
sp_UserOfflineSmall Offline
1
August 6, 2019 - 2:54 pm
sp_Permalink sp_Print

Hi all,

I have scenario where every time user scan the barcode into specific column in the Table1, we need the formula (state in the other column) and new row will insert automatically in the Table1, so that next barcode will be key in after hit enter.

Is that possible ? Attached file as below.

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1529
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
2
August 6, 2019 - 9:18 pm
sp_Permalink sp_Print

Hi,

You could just use TAB to move through each column and a new row will be added once you tab out of the last column?

Why are you using NOW() in the Real Time column?  Lots of these will slow your workbook down and they are volatile so I don't see why it is useful to have this here.

Regards

Phil

Avatar
Mariyaulfa Abdul Hamid
Member
Members
Level 0
Forum Posts: 6
Member Since:
July 27, 2019
sp_UserOfflineSmall Offline
3
August 7, 2019 - 2:40 pm
sp_Permalink sp_Print

Hi Phil,

Thanks for your reply. By pressing TAB, it is perfectly works!

However, my current situation cannot apply TAB directly after scanning.

This template will be displayed at monitor where its location is far from the person who is required to perform the scanning.

The person who scan the barcode just scan without required to press TAB.

I was thinking, is that possible if auto insert new row followed with formula after scanning had been done using VBA probably ?

 

For the second item, formula NOW() being used to indicate the time of scanning being performed. Is there any other option since this formula will slower down the operation 🙁 ?

 

Regards,

Mariya

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1529
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
4
August 19, 2019 - 8:52 am
sp_Permalink sp_Print

Hi Mariya,

You could use events to trigger some VBA to insert a row in the table, but I don't know how your barcode scanning works.  The event will only trigger after the data is entered in the cell i.e. the ENTER key is pressed.  So how does your scanning work?  Once the barcode is scanned, does the focus/active cell change or is there some user interaction required to confirm the scanned code?

Phil

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 873
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
5
August 20, 2019 - 7:09 am
sp_Permalink sp_Print

Hello,

Some barcode scanners, for example Zebra, do support change of settings to send a TAB code when scanning. What brand do you have on your scanner?

Avatar
Mariyaulfa Abdul Hamid
Member
Members
Level 0
Forum Posts: 6
Member Since:
July 27, 2019
sp_UserOfflineSmall Offline
6
August 21, 2019 - 12:28 pm
sp_Permalink sp_Print

Hi Phil,

The user will scan the barcode only then the box will automatically move down after scanning. I have attached the video for your reference. 

 

Hi Anders,

I used brand scanner Innatech and Honeywell.

 

Regards,

Mariya

sp_PlupAttachments Attachments
  • sp_PlupMedia WhatsApp-Video-2019-08-21-at-10.22.49-AM.mp4 (3 MB)
Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 873
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
7
August 21, 2019 - 5:58 pm
sp_Permalink sp_Print

Hello,

For Honeywell scanners I found this document, see pages E11 and E12.

For Inateck I have not found any info that says anything about setting TAB char as prefix or suffix.

An other option is to change the setting for the specific Excel document so that RETURN makes the shift of active cell to go down.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Kumud Patel, Bright Asamoah
Guest(s) 8
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 873
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 222
Jessica Stewart: 218
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Gilbert Lemek
Ashleigh Farquharson
Jayz Luu
Fred Smith
Charles DeGraffenreaid
Cathi Giard
Sarah Young
Henry Delgado
Alita Nieuwoudt
KL KOH
Forum Stats:
Groups: 3
Forums: 24
Topics: 6360
Posts: 27812

 

Member Stats:
Guest Posters: 49
Members: 32340
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.