Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,388
Default How do I create a macro that increments +1 by pressing a button

I need to include in a print off macro the ability to increment a number
every time the macro is run i.e. a counter, anyone know how to do this?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default How do I create a macro that increments +1 by pressing a button

A regularly asked question and a few methods are described here.

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

Mike

"Dave" wrote:

I need to include in a print off macro the ability to increment a number
every time the macro is run i.e. a counter, anyone know how to do this?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default How do I create a macro that increments +1 by pressing a button

Assign a cell to hold the number. Then use the before print event macro to
incement the cell.

Just be sure to test for the correct worksheet.
--
Gary''s Student - gsnu200729


"Dave" wrote:

I need to include in a print off macro the ability to increment a number
every time the macro is run i.e. a counter, anyone know how to do this?

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
how to create a command button, then assign macro to it in excel kshaheen Excel Discussion (Misc queries) 3 June 24th 08 01:03 PM
Excel: Change content A1 with B1 by pressing one button <- Elvira Idea Excel Worksheet Functions 0 November 25th 05 01:40 PM
Sending e-mail with Lotus Notes pressing an excel button AndyOne Excel Discussion (Misc queries) 0 June 1st 05 09:29 PM
Create a button to continue old macro execution Brian Excel Discussion (Misc queries) 0 May 15th 05 10:22 PM
How do I create a macro button and place anywhere on my sheet? Vell H. Holcombe, P.E. Excel Discussion (Misc queries) 1 January 20th 05 04:06 PM


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