Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

select three cells down from active cell

Status
Not open for further replies.

gjsala

Technical User
Feb 20, 2003
107
US
I'm new to vba programming. I need some code in VBA for excel to locate specific item that the user inputs into a message box or has the option to select on the excel spreadsheet. After the the item is inputed or selected on excel, then I need to cells directly underneath, for example if G6 is selected from the message box then G6,G7,G8, and G9 need to be copied to a new spreadsheet.
Thank you!!!
 
Do you make that code so the active cell depends on the input of the user?
 
Rick39,
I tried the following code and it still copied the to the right of the active cell?

Sub ActivateNextBlankDown()
ActiveCell.Offset(1, 0).Select
Do While Not IsEmpty(ActiveCell)
ActiveCell.Offset(1, 0).Select
Loop
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top