Use macro to add 1 to a cell

Jazzmanstereo

New Member
Joined
Apr 8, 2002
Messages
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
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
On 2002-04-09 10:45, Jazzmanstereo wrote:
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

Hi,

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
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,213,487
Messages
6,113,937
Members
448,534
Latest member
benefuexx

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top