Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TextToColumns dialog box - argument settings

Status
Not open for further replies.

jeffreypaul

Technical User
Jan 2, 2003
12
US
In VBA, is it possible to check the current argument settings for the 'Text to Columns' dialog box before opening it for the user?

Specifically, is the Delimited 'Other:' box checked and what 'other_char:' is used?

Alernately, is there a way to get to the 3rd dialog box of the 'Text to Columns' dialog box when using Application.Dialogs(xlDialogTextToColumns).Show?
I would like to show the user the dialog box at 'Step 3 of 3' for a delimited selection, and not make the user click 'Next' twice.

Thanks for the help
 
I think you'll be better off getting the delimiter information from your own custom userform, so that you can save the user's default values in your own variables. Besides not wanting to recreate forms that already exist, is there a reason why you want to reuse Excel's existing dialog?


Rob
[flowerface]
 
Creating a custom userform would allow me to control the options, but how do you simulate the 'Step 3 of 3' dialog box 'Data Preview' window? The user must be able to select the 'Column Data Format:' for each column (which changes for each different import)?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top