Overcome VBA InputBox Character Limit

前端 未结 3 883
孤街浪徒
孤街浪徒 2021-01-13 05:10

The current function I use to collect text InputBox can\'t accept more than 255 characters apparently, and I need to be able to collect more than that? Is there a parameter

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-13 05:52

    I don't have enough rep to comment, but in the sub form_load for the helper you can add:

    me.AutoCenter = True
    

    Outside of that form, you can do it like this:

    NoteEntryForm.Show
    Forms("NoteEntryForm").AutoCenter = True
    

    My Access forms get all confused when I go from my two extra monitors at work to my one extra monitor at home, and are sometimes lost in the corner. This AutoCenter has made it into the form properties of every one of my forms.

提交回复
热议问题