Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default Automatically adding values to cells...

Hi all.

I need some help on this problem;
Hope this make sense; here goes...

Cell D11 has a button with a macro that generates random numbers when clicked.
The generated value is displayed in cell D9 fixed. I want this value
generated to display in cell D12 . When I click the button again the new
value generated must display in D13 and so on. How can I achieve this?

This would be great help...thanks all.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Automatically adding values to cells...

Posting the macro would help but this will always write to the first empty
cell (reading up) in column D

Cells(Rows.Count, "D").End(xlUp)(2).Value = x

Mike

"Markv" wrote:

Hi all.

I need some help on this problem;
Hope this make sense; here goes...

Cell D11 has a button with a macro that generates random numbers when clicked.
The generated value is displayed in cell D9 fixed. I want this value
generated to display in cell D12 . When I click the button again the new
value generated must display in D13 and so on. How can I achieve this?

This would be great help...thanks all.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default Automatically adding values to cells...

thanks but can you clarify your answer in more detail. can I add this line
into a new module?

"Mike H" wrote:

Posting the macro would help but this will always write to the first empty
cell (reading up) in column D

Cells(Rows.Count, "D").End(xlUp)(2).Value = x

Mike

"Markv" wrote:

Hi all.

I need some help on this problem;
Hope this make sense; here goes...

Cell D11 has a button with a macro that generates random numbers when clicked.
The generated value is displayed in cell D9 fixed. I want this value
generated to display in cell D12 . When I click the button again the new
value generated must display in D13 and so on. How can I achieve this?

This would be great help...thanks all.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Automatically adding values to cells...

Hi,

On it's own it will do nothing. You have a button that generates a random
number and writes it ti D9 and it's that macro that needs changing. Post the
macro and someone will help.

Mike

"Markv" wrote:

thanks but can you clarify your answer in more detail. can I add this line
into a new module?

"Mike H" wrote:

Posting the macro would help but this will always write to the first empty
cell (reading up) in column D

Cells(Rows.Count, "D").End(xlUp)(2).Value = x

Mike

"Markv" wrote:

Hi all.

I need some help on this problem;
Hope this make sense; here goes...

Cell D11 has a button with a macro that generates random numbers when clicked.
The generated value is displayed in cell D9 fixed. I want this value
generated to display in cell D12 . When I click the button again the new
value generated must display in D13 and so on. How can I achieve this?

This would be great help...thanks all.

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
adding values of cells AJ Patel New Users to Excel 2 January 4th 08 10:27 PM
Adding Values to Cells Dana Excel Discussion (Misc queries) 18 December 20th 07 05:15 AM
Automatically adding cells with values EZ MILL Excel Discussion (Misc queries) 3 October 2nd 07 07:38 PM
Automatically adding cells from one worksheet to another josh3185 Excel Worksheet Functions 8 May 3rd 06 02:00 AM
adding new x & y values to charts automatically Dan_Green Charts and Charting in Excel 3 August 31st 05 05:08 PM


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