LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default Reading values from inputbox into arrays

On Aug 19, 2:27*pm, Gary''s Student
wrote:
1. read the list into a string
2. parse the string into an array

Sub nayab()
Dim s As String
s = Application.InputBox(prompt:="Enter list: ", Type:=2)
listt = Split(s, ",")

For i = 0 To UBound(listt)
* * MsgBox (listt(i))
Next
End Sub

--
Gary''s Student - gsnu2007k



"Nayab" wrote:
Is it possible to read the values from inputbox directly into arrays?
The values may be comma-separated or space-separated.


The initial problem is I want to exclude certain sheets from
processing based on user's input. So I display the msg showing all the
sheet names to the user and if the user chooses to exclude some of the
sheets, I plan to ask for the sheet names to be excluded which I plan
to put in an array and use the array for further processing.


Thanks- Hide quoted text -


- Show quoted text -


hmmm I also think I will need to parse the string. Anyway thanks a lot.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble with arrays (transferring values between two arrays) Keith R[_2_] Excel Programming 4 November 14th 07 12:00 AM
Saving / Reading dynamic arrays to / from disk Mike[_111_] Excel Programming 4 September 15th 07 11:51 AM
Need help creating, manipulating and reading global arrays ... [email protected] Excel Programming 2 July 9th 07 02:08 PM
Arrays - declaration, adding values to arrays and calculation Maxi[_2_] Excel Programming 1 August 17th 06 04:13 PM
Using Arrays in InputBox Method verizon Excel Programming 4 July 20th 03 08:14 AM


All times are GMT +1. The time now is 02:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"