体验零代码搭建

如何在Excel中通过符号反转域名?

网友投稿  ·  2023-11-01 21:11  ·  所有内容  ·  阅读 369


如何在Excel中通过符号反转域名?

有时,您可能会遇到通过符号反转域名的工作,如下图所示,您是否有任何技巧可以快速解决? 在本文中,我介绍了两种快速处理它的方法。

如何在Excel中通过符号反转域名?

有时,您可能会遇到通过符号反转域名的工作,如下图所示,您是否有任何技巧可以快速解决? 在本文中,我介绍了两种快速处理它的方法。

如何在Excel中通过符号反转域名?

使用VBA通过符号反向域名

通过带有反向文本顺序的分隔符来反向字符串

使用VBA通过符号反向域名
惊人的! 在 Excel 中使用高效的选项卡,如 Chrome、Firefox 和 Safari! 每天节省50%的时间,并减少数千次鼠标单击!

这是可以帮助您的宏代码,请在Excel中执行以下操作:

1。 按 Alt + F11键 启用 Microsoft Visual Basic应用程序 窗口。

2。 点击 插页 > 模块,将代码复制并粘贴到空白脚本中。

VBA:反向域名表示法

Sub Reverse() UpdatebyExtendoffice2017115 Dim xArr() As String Dim xSplitStr As String Dim xVal As String Dim xRg As Range Dim xCell As Range Dim xIndex As Long On Error Resume Next Set xRg = Application.InputBox("Select cells:", "KuTools For Excel", Selection.Address, , , , , 8) If xRg Is Nothing Then Exit Sub Application.ScreenUpdating = False xSplitStr = "." For Each xCell In xRg If InStr(xCell.Value, xSplitStr) = 0 Then GoTo xBreak xVal = "" xArr = Split(xCell.Value, xSplitStr) xIndex = UBound(xArr) xVal = xArr(xIndex) Do xIndex = xIndex - 1 xVal = xVal & xSplitStr & xArr(xIndex) Loop While xIndex > 0 xCell.Value = xVal xBreak: Next Application.ScreenUpdating = True End Sub
Copy
3. Press F5 key, a dialog pops out to remind you select a range to work. 4. Click OK. Reverse string by a separator with Reverse Text Order If you have Kutools for Excel, the Reverse Text Order feature can help you to reverse a string as you need. Kutools for Excel, with more than 120 handy functions, makes your jobs easier. Go to DownloadFree Trial 60 days After installing Kutools for Excel, please do as below: (Free Download Kutools for Excel Now!) 1. Select the string you use, click Kutools > Text > Reverse Text Order. 2. In the Reverse Text dialog, select one option you need to reverse text based on. 3. Click Ok, and the text strings have been reversed. Demo Kutools for Excel: 300 + functions you must have in Excel, 60-day free trial from here Best Office Productivity Tools Transform Hours into Minutes with Kutools for Excel! Ready to supercharge your Excel tasks? Harness the power of Kutools for Excel - your ultimate time-saving tool. Streamline intricate tasks and glide through your data like a pro. Experience Excel at lightning speed! Why You Need Kutools for Excel 🛠️ Over 300 Powerful Features: Kutools is packed with more than 300 advanced features, simplifying your work in over 1500 scenarios. 📈 Superior Data Processing: Merge cells, remove duplicates, and perform advanced data conversions – all without breaking a sweat! ⏱️ Efficient Batch Operations: Why put in extra effort when you can work smart? Import, export, combine, and tweak data in bulk with ease. 📊 Customizable Charts and Reports: Access a broad variety of additional charts and generate insightful reports that tell a story. 🗄️ Powerful Navigation Pane: Gain an advantage with the robust Column Manager, Worksheet Manager, and Custom Favorites. 📝 Seven Types of Drop-down Lists: Make data entry a breeze with drop-down lists of various features and types. 🎓 User-Friendly: A breeze for beginners and a powerful tool for experts. Download Now and Soar Through Time with Excel! Read More... Free Download... Purchase... Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project. Open and create multiple documents in new tabs of the same window, rather than in new windows. Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day! Read More... Free Download... Purchase...


hbuilderx如何折叠子行代码 hbuilderx折叠子行代码教程 << 上一篇
2023-11-01 21:11
hbuilderx如何新建多个窗口 hbuilderx新建多个窗口教程
2023-11-01 22:11
下一篇 >>

相关推荐