Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi i'm using the following macro to print a range and add 1 to a cell what i
need it to do is add a number from a cell and then reset to 1, anyone help please Sub Button2_Click() Sheets("Sheet1").Range("E10").Value = _ Sheets("Sheet1").Range("E10").Value + 1 ActiveSheet.Range("Y4:AA12").PrintOut preview:=False End Sub |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Sub Button2_Click()
With Sheets("Sheet1") .Range("E10").Value = _ .Range("E10").Value + .Range("A1").Value .Range("A1").Value = 1 End With ActiveSheet.Range("Y4:AA12").PrintOut preview:=False End Sub -- HTH Bob Phillips (remove nothere from the email address if mailing direct) "Mike" wrote in message ... Hi i'm using the following macro to print a range and add 1 to a cell what i need it to do is add a number from a cell and then reset to 1, anyone help please Sub Button2_Click() Sheets("Sheet1").Range("E10").Value = _ Sheets("Sheet1").Range("E10").Value + 1 ActiveSheet.Range("Y4:AA12").PrintOut preview:=False End Sub |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks Bob your always a great help, can you make it so it prints the number
before it resets it to 1 please "Mike" wrote: Hi i'm using the following macro to print a range and add 1 to a cell what i need it to do is add a number from a cell and then reset to 1, anyone help please Sub Button2_Click() Sheets("Sheet1").Range("E10").Value = _ Sheets("Sheet1").Range("E10").Value + 1 ActiveSheet.Range("Y4:AA12").PrintOut preview:=False End Sub |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Sub Button2_Click()
With Sheets("Sheet1") .Range("E10").Value = _ .Range("E10").Value + .Range("A1").Value ActiveSheet.Range("Y4:AA12").PrintOut preview:=False .Range("A1").Value = 1 End With End Sub -- HTH Bob Phillips (remove nothere from the email address if mailing direct) "Mike" wrote in message ... Thanks Bob your always a great help, can you make it so it prints the number before it resets it to 1 please "Mike" wrote: Hi i'm using the following macro to print a range and add 1 to a cell what i need it to do is add a number from a cell and then reset to 1, anyone help please Sub Button2_Click() Sheets("Sheet1").Range("E10").Value = _ Sheets("Sheet1").Range("E10").Value + 1 ActiveSheet.Range("Y4:AA12").PrintOut preview:=False End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Search, Copy, Paste Macro in Excel | Excel Worksheet Functions | |||
Closing File Error | Excel Discussion (Misc queries) | |||
macro with F9 | Excel Discussion (Misc queries) | |||
Make Alignment options under format cells available as shortcut | Excel Discussion (Misc queries) | |||
Playing a macro from another workbook | Excel Discussion (Misc queries) |