Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
LMiller
 
Posts: n/a
Default Consecutive numbers in 1 cell

Hello!!
I´m trying to find a formula that changes the number in one cell, in a
consecutive way, using a macro button or every time the file is opened.

Example: The way a number of an invoice changes and doesn´t repeat itself
everytime you open the file or once you click on an assigned macro button!

Thank you in advance for your help.

Luis Miller.
  #2   Report Post  
Paul B
 
Posts: n/a
Default

Luis, have a look here for ways to do it

http://www.mcgimpsey.com/excel/udfs/sequentialnums.html

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"LMiller" wrote in message
...
Hello!!
I´m trying to find a formula that changes the number in one cell, in a
consecutive way, using a macro button or every time the file is opened.

Example: The way a number of an invoice changes and doesn´t repeat itself
everytime you open the file or once you click on an assigned macro button!

Thank you in advance for your help.

Luis Miller.



  #3   Report Post  
Bryan Hessey
 
Posts: n/a
Default


Create a button and rightmouse, View Code
insert

Range("J19").Value = Range("J19").Value + 1

to add one to a number in cell J19

To create a button, in Excel, View, Toolbars and ensure Control Toolbox
is selected.
On that toolbar, click to enter Design Mode (that icon now becomes
'Exit Design Mode')
select Command Button and click in the required cell (say J20)

Add the code as in my first line, then Exit design mode.

You can later modify the buttons properties, usually the BackColour,
dropdown and select the left (colour) tab, and Caption.




LMiller Wrote:
Hello!!
I´m trying to find a formula that changes the number in one cell, in
a
consecutive way, using a macro button or every time the file is
opened.

Example: The way a number of an invoice changes and doesn´t repeat
itself
everytime you open the file or once you click on an assigned macro
button!

Thank you in advance for your help.

Luis Miller.



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=395477

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
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM
Cell will not format numbers correctly for a 13 digit custom barc. Laudan Excel Worksheet Functions 4 April 11th 05 08:13 PM
create a cell that accumulates, numbers from another cell... sombull Excel Discussion (Misc queries) 1 February 18th 05 04:45 PM
Paste rows of numbers from Word into single Excel cell BecG Excel Discussion (Misc queries) 1 December 8th 04 04:55 PM


All times are GMT +1. The time now is 11:52 PM.

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"