如何为UserForm中的每个新文本行添加vbTab到Bookmark? [英] How to insert vbTab for each new line of text from a UserForm to Bookmark?

查看:63
本文介绍了如何为UserForm中的每个新文本行添加vbTab到Bookmark?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我创建的用户表单中,有一个文本框,当"OK"时,它将文本传输到书签。单击。

In a userform I created there's a textbox which transfers it's text to a bookmark when "OK" is clicked.

这个文本框接受不同的输入行,而不仅仅是一行,我在文本之前每行都有一个制表符间距,但我无法设法这样做。

This textbox accepts different lines of input, not just one, I was every line to have a tab spacing before the text but I just can't manage to do so.

代码是:

        With .Bookmarks("NombreCCP").Range
            .Text = vbTab & txtNombreCCP.Value
            .Font.Bold = False
            .Font.Name = "AvenirNext LT Pro Regular"
            .Font.Size = 7.5
        End With

第一行确实获得了标签,但该行的其余部分没有

The first line does get the tab but the rest of the line don't

感谢任何帮助。




推荐答案

根据您的描述,您应该使用段落缩进,而不是制表符。
From your description, you should be using paragraph indenting, not tabs.


这篇关于如何为UserForm中的每个新文本行添加vbTab到Bookmark?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆