-
Solved: Print Selected Cells to Another Cell
I'm trying to print data from sheet1. row.cells selected to sheets.cells
But I don't know how to do
I tried to make this but didn't accept
Dim cel as Cells
[VBA]For i as Integer= sheets(1).Cells.Rows.Count -1
set Cel= Sheets(1).Cells(i,1).Cells.Value
Sheets(1).Cells.Value = cel.Select [/VBA]
-
You need to be a lot clearer in your request.
MVP (Excel 2008-2010)
Post a workbook with sample data and layout if you want a quicker solution.
To help indent your macros try Smart Indent
Please remember to mark threads 'Solved'
-
I have four rows include each one have cells.
When I select these rows with cells I want to print each cell to another cell in another sheet.
I hope I'm clear
-
Try this
[VBA]Sub CopyCells()
Selection.EntireRow.Copy Sheets(2).Cells(Rows.Count, 1).End(xlUp)(2)
End Sub
[/VBA]
MVP (Excel 2008-2010)
Post a workbook with sample data and layout if you want a quicker solution.
To help indent your macros try Smart Indent
Please remember to mark threads 'Solved'
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules