Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
sgl sgl is offline
external usenet poster
 
Posts: 80
Default Read write non contiguous cells

Hi All!
I have several sheets in a wkbk where the user enters data in fixed cell
addresses. Cells are non contiguous. I want to read the values from each
sheet and cell and compile a tabulated summary report on a "Report" sheet in
the same wkbk. Each sheet results to be on a separate row.

Using office 2000
Thanks in advance for any assistance

sgl

--
sgl
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Read write non contiguous cells

See one reply at your post in .setup.

sgl wrote:

Hi All!
I have several sheets in a wkbk where the user enters data in fixed cell
addresses. Cells are non contiguous. I want to read the values from each
sheet and cell and compile a tabulated summary report on a "Report" sheet in
the same wkbk. Each sheet results to be on a separate row.

Using office 2000
Thanks in advance for any assistance

sgl

--
sgl


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Read write non contiguous cells


Użytkownik "sgl" napisał w wiadomo¶ci
...
Hi All!
I have several sheets in a wkbk where the user enters data in fixed cell
addresses. Cells are non contiguous. I want to read the values from each
sheet and cell and compile a tabulated summary report on a "Report" sheet

in
the same wkbk. Each sheet results to be on a separate row.

Using office 2000
Thanks in advance for any assistance

sgl

--
sgl



try something like this
Sub test()
On Error Resume Next
For Each sh In Sheets
sh.Activate
i = i + 1
j = 0
Ran = "ran" & i
For Each c In ActiveSheet.Range(Ran)
j = j + 1
Sheets("ttl").Cells(i, j) = c.Value
Next c
Next
End Sub

1.place sheet "ttl" as last sheet
2.give names to al cells you want in each sheet - calling them ran&number of
sheet (counting from left)- for sheet1 ran1

hope it helps
mcg



  #4   Report Post  
Posted to microsoft.public.excel.programming
sgl sgl is offline
external usenet poster
 
Posts: 80
Default Read write non contiguous cells

Many thanks indeed for your assistance and quick response. The code worked
very well and I have now added code to read each sheet in the workbook and
compile a very useful summary report of the whole wkbk.

"Dave Peterson" wrote:

See one reply at your post in .setup.

sgl wrote:

Hi All!
I have several sheets in a wkbk where the user enters data in fixed cell
addresses. Cells are non contiguous. I want to read the values from each
sheet and cell and compile a tabulated summary report on a "Report" sheet in
the same wkbk. Each sheet results to be on a separate row.

Using office 2000
Thanks in advance for any assistance

sgl

--
sgl


--

Dave Peterson

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
I have a read only xl file, I need it to be read and write drama queen Excel Discussion (Misc queries) 3 July 1st 06 12:25 AM
How can a file be converted from Read-Only to Read/Write Jim in Apopka Excel Discussion (Misc queries) 2 November 19th 05 04:59 PM
Read write non contiguous cells sgl Setting up and Configuration of Excel 2 April 10th 05 07:15 AM
Altering read/write facility of individual cells Nick Read Excel Discussion (Misc queries) 5 January 29th 05 12:06 AM
Programatically read & write excel cells Willy Excel Programming 1 September 8th 04 08:25 AM


All times are GMT +1. The time now is 04:06 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"