Function RegExpFind(text_string As String, pattern As String) As String
Dim regEx As Object
Set regEx = CreateObject("VBScript.RegExp")
With regEx
.Pattern = pattern
.IgnoreCase = True
.Global = False
End With
If regEx.Test(text_string) Then
RegExpFind = regEx.Execute(text_string)(0)
Else
RegExpFind = ""
End If
End Function
If you’re just starting out with mental arithmetic, you’ve probably realized how important it is to have clear and organized number examples. That’s exactly why I created the Abacus Generator – a simple yet powerful tool in Excel that helps you prepare number tasks in a neat and easy-to-read format.
📌 What is it? The Abacus Generator is a VBA script (built into Excel) that automatically creates a table with groups of three numbers arranged vertically, just like the tasks you’d find when working with an abacus. The focus of this tool is to generate printable worksheets for abacus exercises with just one click.
👶 Why is it perfect for beginners?
You don’t need to know any programming – just click a button, and it does everything for you.
It arranges the numbers in up to 10 columns per row, making it easy to view and print.
It works right inside a regular Excel file – no need for additional software.
🛠️ What it does:
Automatically creates or clears a worksheet named “Abacus”
Fills in numbers as text to preserve all digits and formatting
Neatly arranges them – perfect for printing and practicing
Focuses on easy-to-print abacus exercises that you can use for training or lessons with a single button click
If you’re looking for an easy way to create abacus exercises for beginners, especially when you want to quickly print them for practice, this tool is exactly what you need.
💬 Abacus example: 6 – 2
This version emphasizes how the tool focuses on generating printable worksheets for abacus exercises with ease, just by pressing a button. Let me know if you need any further changes!
📥 Download the Abacus Generator
Ready to get started? You can download the Abacus Generator file below and start creating your own abacus exercises in minutes.
Once you download the file, simply enable macros, press the button, and you’ll have a sheet full of abacus exercises ready to print and use for practice.
Simple VBA function to split strings into words (or strings):
Function TxtSplit(rngCell As Range, delim As String, nr As Long) As String
Dim str As String
Dim arr As Variant
str = Trim(rngCell.Value)
arr = Split(str, delim)
TxtSplit = Trim(arr(nr - 1))
End Function
Проста програмка на Excel за изчисляване на съпротивлението на coil-а за изпарител на електронна цигара.
Най-интересното във файла е, че съм използвал именувани полета, за да създам нещо като база данни от която се извличат данните.
Файла може да се изтегли от тук: Ohm Calculator – e-cigarette
Днес ми се наложи да добавям доста редове в Excel таблица, която беше предварително форматирана. Добавянето и форматирането на редовете един по един е хамалска работа, затова реших да напиша простичък макрос на VBA, който да свърши работата. Кода на макроса е:
Private Sub CommandButton1_Click()
ActiveCell.Offset(1).EntireRow.Insert
ActiveCell.EntireRow.Copy
ActiveCell.Offset(1).EntireRow.PasteSpecial Paste:=xlPasteFormats, _
Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
End Sub
Кода го вкарвам в Shee-та:
За да го стартирам се вижда, че съм използвал бутон, вкаран в Shee-та:
Екселския файл може да се изтегли от тук: Excel VBA add row
Ето и едно видео, което показва цялата операция: Excel VBA add row
[flv:https://blog.nediko.info/examples/excel_VBA_add_row/Add_row.flv https://blog.nediko.info/wp-content/uploads/2012/06/excel_addrow_03.jpg 472 388]
Share and Enjoy !
Shares
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.AcceptRead More
Privacy & Cookies Policy
Privacy Overview
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.