Hi there,
I have a slight problem I am currently dealing with making up time sheets on the one sheet for a number of members of staff.
The problem is that we do not know how many staff will be there and I am trying to set up a macro button to do the following:
Take the active cell or user input the cell to start from
if active cell move down 25 places and then
paste the blank time table from sheet 2 into the cell
hide sheet 2
I know how to hide the sheets, paste the sheets, and off set the mouse
but cant seem to make it so the user can input the cell number and it will use that cell to paste into.
Any help would be greatly appreciated.
Current coding is:
ActiveCell.Offset(25, 0).Select
Sheets("Sheet2").Visible = True
Range("A1:AB28").Select
Selection.Copy
Sheets("Sheet2").Visible = False
ActiveCell.PasteSpecial
ActiveWindow.SmallScroll Down:=27
But it keeps pasting over the current blank sheet rather than moving down cells.
Cheers
Configuration: Windows XP Safari 530.5
Its fine I have managed to fix it myself :)
|
=IF(ISNA(INDEX(Sheet6!$A$2:$H$81,MATCH(Sheet5!A22,Sheet6!$A$2:$A$81,0),MATCH(Sheet5!$D$5,Sheet6!$A$1:$H$1,0))),"",INDEX(Sheet6!$A$2:$H$81,MATCH(Sheet5!A22,Sheet6!$A$2:$A$81,0),MATCH(Sheet5!$D$5,Sheet6!$A$1:$H$1,0)))
Winners are losers who got up and gave it one more try. -Dennis DeYoung
|
Works perfectly knew there was a bracket or 2 missing thanks very much.
|