Thread
:
How to set macro to Paste Special Value to next empty column
View Single Post
#
5
Posted to microsoft.public.excel.worksheet.functions
Don Guillett
external usenet poster
Posts: 10,124
How to set macro to Paste Special Value to next empty column
Max,
The point was to replace the old nc= with the new, not to have both.
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"Max" wrote in message
...
Try Don's revised sub like this:
Sub makevalues()
mc = "q"
sr = 7
lr = Cells(Rows.Count, mc).End(xlUp).Row
nc = Cells(sr, Columns.Count).End(xlToLeft).Column + 1
nc = Cells(sr, mc).End(xlToLeft).Column + 1
Range(Cells(sr, mc), Cells(lr, mc)).Copy
Cells(sr, nc).PasteSpecial Paste:=xlValues
Application.CutCopyMode = False
End Sub
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
Reply With Quote
Don Guillett
View Public Profile
Find all posts by Don Guillett