Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Hi
If I have the following macro running in worksheet 1. Option Explicit Sub RCA() ActiveSheet.UsedRange If Range("A1").Value = "" Then Range("A1").Value = InputBox("Enter starting value") Else Range("A1").SpecialCells (xlCellTypeLastCell).Offset(1, 0).Value = Application.WorksheetFunction.Max(Range("A:A")) + 1 End If End Sub How can I adjust the macro to run in worksheet 2 & 3. If I want worksheet 2 to start with PCI1 then PCI2 and so on and then worksheet 3 to start with PCICR1 then PCICR2. Thanks Mark |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to protect and unprotect 30 worksheets in a file every month . | Excel Worksheet Functions | |||
Protect/unprotect all worksheets | Excel Worksheet Functions | |||
HELP! How do you--> Lock a set of rows but also link worksheets to | Excel Discussion (Misc queries) | |||
data entry on multiple worksheets | Excel Discussion (Misc queries) | |||
Assigning Cells in worksheets to other data in other worksheets. | Excel Discussion (Misc queries) |