![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Location: England
Posts: 10
|
Hi, just wanna know how to add one to a cell within excel using a macro.
This cell is the order number, so once the order is processed i want it to add one to the order number. Anyone help me out? pleaze |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Chicago, IL USA
Posts: 2,042
|
Quote:
After your order processing routine is complete, insert the following Range(your cell) = Range(your cell) + 1 example: A1 is the order cell Range("A1") = Range("A1") + 1 Bye, Jay |
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Jan 2009
Posts: 120
|
wg
|
|
|
|
|
|
#4 |
|
New Member
Join Date: May 2011
Posts: 6
|
Similar but Different question: I am trying to add a 1 before each number of a column of telephone numbers using a macro. i.e. the numbers are 5555551212 and I need them formatted as 15555551212.
When the numbers end in the column (it changes constantly), the macro should end. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|