Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default dYNAMIC Array declaration, a small correction in my last thread!

Hello all!

A small correction in my last thread.

In the following macro, how do I declare the variable 'Y' as a dynami
array, that can store as many values as stored in the variabl
'stages'?

==============================================
Sub triall()

x = 0
i=1

stages = InputBox("Enter the number of stages for CDF comparison")

x = x + stages

Do Until x

nstages = InputBox("Enter the stage number!")

Y(i) = nstages

i = i + 1

Loop


End Sub
==============================================


Another quick qn:

I deleted the default 'Help' menu from Excel while defining my ow
Menus. How do I get it back to the Excel? I did'nt save the changes
still it did'nt even prompt me while I closed the Excel workbook and
lost the default 'Help' menu from the toolbars.

Would appreciate your help.


Thanks a bunch.

Regds,

Arun.

Vtec corp

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default dYNAMIC Array declaration, a small correction in my last thread!

Sub triall()
Dim Y() as Long
x = 0
i=1

stages = InputBox("Enter the number of stages for CDF comparison")

x = x + stages

Redim Y(1 to stages)
Do Until i x

nstages = InputBox("Enter the stage number!")

Y(i) = nstages

i = i + 1

Loop


End Sub

--
Regards,
Tom Ogilvy


"aiyer " wrote in message
...
Hello all!

A small correction in my last thread.

In the following macro, how do I declare the variable 'Y' as a dynamic
array, that can store as many values as stored in the variable
'stages'?

==============================================
Sub triall()

x = 0
i=1

stages = InputBox("Enter the number of stages for CDF comparison")

x = x + stages

Do Until x

nstages = InputBox("Enter the stage number!")

Y(i) = nstages

i = i + 1

Loop


End Sub
==============================================


Another quick qn:

I deleted the default 'Help' menu from Excel while defining my own
Menus. How do I get it back to the Excel? I did'nt save the changes,
still it did'nt even prompt me while I closed the Excel workbook and I
lost the default 'Help' menu from the toolbars.

Would appreciate your help.


Thanks a bunch.

Regds,

Arun.

Vtec corp.


---
Message posted from http://www.ExcelForum.com/



Reply
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
Array Declaration. apis Excel Discussion (Misc queries) 1 November 5th 11 01:53 PM
How do I create a small array from a larger one? Luke Excel Discussion (Misc queries) 3 July 27th 09 07:56 PM
Small Array is too big for AVERAGE Function? daven123 Excel Worksheet Functions 6 November 29th 06 02:22 PM
Dynamic Array Michael168[_82_] Excel Programming 1 June 2nd 04 07:26 AM
see if dynamic array used RobcPettit Excel Programming 2 January 17th 04 12:44 AM


All times are GMT +1. The time now is 11:13 AM.

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

About Us

"It's about Microsoft Excel"