Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 02-29-2020, 06:51 PM
Jennifer Murphy's Avatar
Jennifer Murphy Jennifer Murphy is offline Is there any way to get MsgBox columns to line up? Windows XP Is there any way to get MsgBox columns to line up? Office 2007
Competent Performer
Is there any way to get MsgBox columns to line up?
 
Join Date: Aug 2011
Location: Silicon Valley
Posts: 234
Jennifer Murphy is on a distinguished road
Default

Quote:
Originally Posted by Guessed View Post
Relatively simple? No

But the right way to do it would be using a UserForm and listbox control.
That's what I thought. I've been meaning to learn UserForms for a while. This may be the push I need.

Can I trouble you to post a basic skeleton for how to get started?

Given these variables:

Code:
Dim MaxNum as Long
Dim iRow() as Long
Dim dDays() as Double
Dim sTitle() as String
As the code runs, these arrays get ReDim'd to (1 To MaxNum).

I'd like the UserForm to display one line for each row or the arrays plus this title so that everything lines up:

Code:
 Row   Days   Title
  1    3.25  Title #1
  2   12.67  Title #2
  3    0.17  Title #3
  4   14.50  Title #4
   . . .
And then give the user the option of selecting one of the rows by number.

Thanks
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Match to columns and then copy line to second list. Borut2019 Excel 0 02-18-2019 01:04 AM
Is there any way to get MsgBox columns to line up? Problem with Msgbox in VBA Puzzled Programmer Excel Programming 6 09-06-2018 04:34 PM
Is there any way to get MsgBox columns to line up? columns in last table row don't line up mavisgold Word 1 03-26-2017 02:32 AM
Formatting the line between columns in Word Mac 2011 bpanda Word 1 06-03-2013 07:52 PM
Is there any way to get MsgBox columns to line up? Make MsgBox appear... Jamtart PowerPoint 3 09-01-2012 08:21 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:59 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft