Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to do that


hello, suppose there are 100 cells, A1.......A100, they have the values
1.....100
how can I programming it when I open the worksheet, the cells already
contain those numbers?Thank you.


--
lwong
------------------------------------------------------------------------
lwong's Profile: http://www.excelforum.com/member.php...o&userid=33707
View this thread: http://www.excelforum.com/showthread...hreadid=535213

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 249
Default how to do that

Dim i As Integer
For i = 1 To 100
Sheets(1).Range("A" & i) = i
Next

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"lwong" wrote:
|
| hello, suppose there are 100 cells, A1.......A100, they have the values
| 1.....100
| how can I programming it when I open the worksheet, the cells already
| contain those numbers?Thank you.
|
|
| --
| lwong
| ------------------------------------------------------------------------
| lwong's Profile:
http://www.excelforum.com/member.php...o&userid=33707
| View this thread: http://www.excelforum.com/showthread...hreadid=535213
|


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default how to do that

Open a blank worksheet and enter the desired numbers. Then save the
workbook. Then close the workbook.

Whenever you re-open the workbook, the numbers will already be there!
--
Gary's Student


"lwong" wrote:


hello, suppose there are 100 cells, A1.......A100, they have the values
1.....100
how can I programming it when I open the worksheet, the cells already
contain those numbers?Thank you.


--
lwong
------------------------------------------------------------------------
lwong's Profile: http://www.excelforum.com/member.php...o&userid=33707
View this thread: http://www.excelforum.com/showthread...hreadid=535213


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to do that


good suggestion of Gray's student, but dont forget here is programming
area.
Thank you, Dave Patrick


--
lwong
------------------------------------------------------------------------
lwong's Profile: http://www.excelforum.com/member.php...o&userid=33707
View this thread: http://www.excelforum.com/showthread...hreadid=535213

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



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

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"