Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
hally
 
Posts: n/a
Default Creating a cell so data goes into a table

i am trying to create if possible a cell so that when i enter data into that
cell and i press return it enters the data into a table, then deletes the
cell where i originaly entered the data so i can enter some new data.
  #2   Report Post  
bj
 
Posts: n/a
Default

do you have criteria as to where it goes into the table?

"hally" wrote:

i am trying to create if possible a cell so that when i enter data into that
cell and i press return it enters the data into a table, then deletes the
cell where i originaly entered the data so i can enter some new data.

  #3   Report Post  
hally
 
Posts: n/a
Default

no it needs to go into a table 10 x 10 and each figure entered needs to go
into one of those cells

"bj" wrote:

do you have criteria as to where it goes into the table?

"hally" wrote:

i am trying to create if possible a cell so that when i enter data into that
cell and i press return it enters the data into a table, then deletes the
cell where i originaly entered the data so i can enter some new data.

  #4   Report Post  
hally
 
Posts: n/a
Default

needs to go into a 10 x 10 table in which each piece of data is put into each
of the tables cells

"bj" wrote:

do you have criteria as to where it goes into the table?

"hally" wrote:

i am trying to create if possible a cell so that when i enter data into that
cell and i press return it enters the data into a table, then deletes the
cell where i originaly entered the data so i can enter some new data.

  #5   Report Post  
bj
 
Posts: n/a
Default

does the 10 by 10 start out blank?
I can not tell whether the value goes to every cell at the same time or if
it goes into a different cell each time a new value is entered.
What do you want done after the 10 by 10 block is filled?

"hally" wrote:

needs to go into a 10 x 10 table in which each piece of data is put into each
of the tables cells

"bj" wrote:

do you have criteria as to where it goes into the table?

"hally" wrote:

i am trying to create if possible a cell so that when i enter data into that
cell and i press return it enters the data into a table, then deletes the
cell where i originaly entered the data so i can enter some new data.



  #6   Report Post  
hally
 
Posts: n/a
Default

the 10 x 10 starts blank. everytime i enter a value in a cell i want it to go
to the first cell in the table. then i want the value i enter next from the
same cell to go into the next cell on the table.
10 x 10 is a practice but i want the table to grow until i enter all my values

"bj" wrote:

does the 10 by 10 start out blank?
I can not tell whether the value goes to every cell at the same time or if
it goes into a different cell each time a new value is entered.
What do you want done after the 10 by 10 block is filled?

"hally" wrote:

needs to go into a 10 x 10 table in which each piece of data is put into each
of the tables cells

"bj" wrote:

do you have criteria as to where it goes into the table?

"hally" wrote:

i am trying to create if possible a cell so that when i enter data into that
cell and i press return it enters the data into a table, then deletes the
cell where i originaly entered the data so i can enter some new data.

  #7   Report Post  
bj
 
Posts: n/a
Default

a brute force macro to do so would be like

assume C3 is the cell you want to enter into the table D1:M10
Sub fltab()
If Cells(3, 3) = "" Then GoTo 100
cnt = Application.WorksheetFunction.CountA(Range("D1:M10 "))
If cnt = 0 Then rw = 1: cl = 0: GoTo 10
cl = Application.WorksheetFunction.Floor(cnt - 1, 10)
rw = cnt - cl * 10 + 1
10 Cells(rw, 4 + cl) = Cells(3, 3)
If cnt = 100 Then Cells(3, 3) = "FULL" Else Cells(3, 3) = ""
100
End Sub

ways of running the sub would be to have a button next to the cell with the
macro assigned.
or the macro could be modified and run from the sheet module as a change
event that would run whenever somthing was put into the cell.

{I like brute force macros to try things out, but perfer to make the more
formal macros with dim statements and as on action events once they actually
work the way I want them. Brute force macros are easier to understand and
for simple ones to debug, but are more likely to have certain types of
problems.}




"hally" wrote:

the 10 x 10 starts blank. everytime i enter a value in a cell i want it to go
to the first cell in the table. then i want the value i enter next from the
same cell to go into the next cell on the table.
10 x 10 is a practice but i want the table to grow until i enter all my values

"bj" wrote:

does the 10 by 10 start out blank?
I can not tell whether the value goes to every cell at the same time or if
it goes into a different cell each time a new value is entered.
What do you want done after the 10 by 10 block is filled?

"hally" wrote:

needs to go into a 10 x 10 table in which each piece of data is put into each
of the tables cells

"bj" wrote:

do you have criteria as to where it goes into the table?

"hally" wrote:

i am trying to create if possible a cell so that when i enter data into that
cell and i press return it enters the data into a table, then deletes the
cell where i originaly entered the data so i can enter some new data.

  #8   Report Post  
hally
 
Posts: n/a
Default

how would you create that?

"TomHinkle" wrote:

I'd just use the data form...
Simple and no coding..

"bj" wrote:

does the 10 by 10 start out blank?
I can not tell whether the value goes to every cell at the same time or if
it goes into a different cell each time a new value is entered.
What do you want done after the 10 by 10 block is filled?

"hally" wrote:

needs to go into a 10 x 10 table in which each piece of data is put into each
of the tables cells

"bj" wrote:

do you have criteria as to where it goes into the table?

"hally" wrote:

i am trying to create if possible a cell so that when i enter data into that
cell and i press return it enters the data into a table, then deletes the
cell where i originaly entered the data so i can enter some new data.

  #9   Report Post  
hally
 
Posts: n/a
Default

could you please go through most stages on how i get the macro to run as i
dont know much about macros.

"bj" wrote:

a brute force macro to do so would be like

assume C3 is the cell you want to enter into the table D1:M10
Sub fltab()
If Cells(3, 3) = "" Then GoTo 100
cnt = Application.WorksheetFunction.CountA(Range("D1:M10 "))
If cnt = 0 Then rw = 1: cl = 0: GoTo 10
cl = Application.WorksheetFunction.Floor(cnt - 1, 10)
rw = cnt - cl * 10 + 1
10 Cells(rw, 4 + cl) = Cells(3, 3)
If cnt = 100 Then Cells(3, 3) = "FULL" Else Cells(3, 3) = ""
100
End Sub

ways of running the sub would be to have a button next to the cell with the
macro assigned.
or the macro could be modified and run from the sheet module as a change
event that would run whenever somthing was put into the cell.

{I like brute force macros to try things out, but perfer to make the more
formal macros with dim statements and as on action events once they actually
work the way I want them. Brute force macros are easier to understand and
for simple ones to debug, but are more likely to have certain types of
problems.}




"hally" wrote:

the 10 x 10 starts blank. everytime i enter a value in a cell i want it to go
to the first cell in the table. then i want the value i enter next from the
same cell to go into the next cell on the table.
10 x 10 is a practice but i want the table to grow until i enter all my values

"bj" wrote:

does the 10 by 10 start out blank?
I can not tell whether the value goes to every cell at the same time or if
it goes into a different cell each time a new value is entered.
What do you want done after the 10 by 10 block is filled?

"hally" wrote:

needs to go into a 10 x 10 table in which each piece of data is put into each
of the tables cells

"bj" wrote:

do you have criteria as to where it goes into the table?

"hally" wrote:

i am trying to create if possible a cell so that when i enter data into that
cell and i press return it enters the data into a table, then deletes the
cell where i originaly entered the data so i can enter some new data.

  #10   Report Post  
TomHinkle
 
Posts: n/a
Default

I'd just use the data form...
Simple and no coding..

"bj" wrote:

does the 10 by 10 start out blank?
I can not tell whether the value goes to every cell at the same time or if
it goes into a different cell each time a new value is entered.
What do you want done after the 10 by 10 block is filled?

"hally" wrote:

needs to go into a 10 x 10 table in which each piece of data is put into each
of the tables cells

"bj" wrote:

do you have criteria as to where it goes into the table?

"hally" wrote:

i am trying to create if possible a cell so that when i enter data into that
cell and i press return it enters the data into a table, then deletes the
cell where i originaly entered the data so i can enter some new data.



  #11   Report Post  
TomHinkle
 
Posts: n/a
Default

create column headings. (preferably in the top row)

with your cursor on one of the headings, click the data menu, then form..
If you don't have any data yet, Excel will ask you where the headings are,
just click okay.






"hally" wrote:

how would you create that?

"TomHinkle" wrote:

I'd just use the data form...
Simple and no coding..

"bj" wrote:

does the 10 by 10 start out blank?
I can not tell whether the value goes to every cell at the same time or if
it goes into a different cell each time a new value is entered.
What do you want done after the 10 by 10 block is filled?

"hally" wrote:

needs to go into a 10 x 10 table in which each piece of data is put into each
of the tables cells

"bj" wrote:

do you have criteria as to where it goes into the table?

"hally" wrote:

i am trying to create if possible a cell so that when i enter data into that
cell and i press return it enters the data into a table, then deletes the
cell where i originaly entered the data so i can enter some new data.

  #12   Report Post  
bj
 
Posts: n/a
Default

go to <tools<macros<visual Basic editor
<insert<module
copy the macro code from the response and paste into the module
You will probably need ot change the diference range references to what you
are actually using in your file.
<file<close and return
select a character from autoshapes and put next to your cell
right click on it and assign the macro you just pasted into the module.


"hally" wrote:

could you please go through most stages on how i get the macro to run as i
dont know much about macros.

"bj" wrote:

a brute force macro to do so would be like

assume C3 is the cell you want to enter into the table D1:M10
Sub fltab()
If Cells(3, 3) = "" Then GoTo 100
cnt = Application.WorksheetFunction.CountA(Range("D1:M10 "))
If cnt = 0 Then rw = 1: cl = 0: GoTo 10
cl = Application.WorksheetFunction.Floor(cnt - 1, 10)
rw = cnt - cl * 10 + 1
10 Cells(rw, 4 + cl) = Cells(3, 3)
If cnt = 100 Then Cells(3, 3) = "FULL" Else Cells(3, 3) = ""
100
End Sub

ways of running the sub would be to have a button next to the cell with the
macro assigned.
or the macro could be modified and run from the sheet module as a change
event that would run whenever somthing was put into the cell.

{I like brute force macros to try things out, but perfer to make the more
formal macros with dim statements and as on action events once they actually
work the way I want them. Brute force macros are easier to understand and
for simple ones to debug, but are more likely to have certain types of
problems.}




"hally" wrote:

the 10 x 10 starts blank. everytime i enter a value in a cell i want it to go
to the first cell in the table. then i want the value i enter next from the
same cell to go into the next cell on the table.
10 x 10 is a practice but i want the table to grow until i enter all my values

"bj" wrote:

does the 10 by 10 start out blank?
I can not tell whether the value goes to every cell at the same time or if
it goes into a different cell each time a new value is entered.
What do you want done after the 10 by 10 block is filled?

"hally" wrote:

needs to go into a 10 x 10 table in which each piece of data is put into each
of the tables cells

"bj" wrote:

do you have criteria as to where it goes into the table?

"hally" wrote:

i am trying to create if possible a cell so that when i enter data into that
cell and i press return it enters the data into a table, then deletes the
cell where i originaly entered the data so i can enter some new data.

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
Pivot Tables, Help? Adam Excel Discussion (Misc queries) 6 March 24th 05 02:35 PM
change font color of first cell in data table attached to chart momo Charts and Charting in Excel 2 February 18th 05 01:47 AM
Repeat Cell Data Pinky Excel Worksheet Functions 1 January 18th 05 05:38 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM
Formula to Extract Data from a Table Macshots Excel Worksheet Functions 2 November 5th 04 06:35 AM


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