try
Sub makevalues()
mc = "q"
sr=7
lr = Cells(Rows.Count, mc).End(xlUp).Row
nc = Cells(sr, Columns.Count).End(xlToLeft).Column + 1
Range(Cells(sr, mc), Cells(lr, mc)).Copy
Cells(sr, nc).PasteSpecial Paste:=xlValues
Application.CutCopyMode = False
End Sub

Signature
Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com
> Range("P32,Q7:Q32").Select
> Range("Q7").Activate
[quoted text clipped - 13 lines]
>
> Please help. Thanks
tottigoh781@gmail.com - 05 May 2008 16:36 GMT
> try
>
[quoted text clipped - 33 lines]
>
> > Please help. Thanks
Thanks for the response. However, the value get pasted to the column
R. What happen is that my values in column Q is updated monthly. After
each update i need to paste special value to column C then column D in
the next month and so on. So i need the macro to recognise the next
empty column to the left of column Q. Please help. Thanks
Don Guillett - 05 May 2008 17:00 GMT
nc = Cells(sr, Columns.Count).End(xlToLeft).Column + 1
nc = Cells(sr, mc).End(xlToLeft).Column + 1

Signature
Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com
>> try
>>
[quoted text clipped - 39 lines]
> the next month and so on. So i need the macro to recognise the next
> empty column to the left of column Q. Please help. Thanks
tottigoh781@gmail.com - 05 May 2008 17:55 GMT
> nc = Cells(sr, Columns.Count).End(xlToLeft).Column + 1
> nc = Cells(sr, mc).End(xlToLeft).Column + 1
[quoted text clipped - 50 lines]
> > the next month and so on. So i need the macro to recognise the next
> > empty column to the left of column Q. Please help. Thanks
Where do i put this 2 lines?
Don Guillett - 05 May 2008 18:10 GMT
First. Many of us prefer TOP posting here.
Second. Put on your thinking cap and look at the macro again>and again.

Signature
Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com
>> nc = Cells(sr, Columns.Count).End(xlToLeft).Column + 1
>> nc = Cells(sr, mc).End(xlToLeft).Column + 1
[quoted text clipped - 53 lines]
>
> Where do i put this 2 lines?
tottigoh781@gmail.com - 05 May 2008 18:26 GMT
> First. Many of us prefer TOP posting here.
> Second. Put on your thinking cap and look at the macro again>and again.
[quoted text clipped - 63 lines]
>
> > Where do i put this 2 lines?
I dont know a single bit of programming that is why i am asking the qn
Max - 05 May 2008 22:39 GMT
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

Signature
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
Don Guillett - 05 May 2008 23:38 GMT
Max,
The point was to replace the old nc= with the new, not to have both.

Signature
Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com
> Try Don's revised sub like this:
>
[quoted text clipped - 10 lines]
> Application.CutCopyMode = False
> End Sub
Max - 05 May 2008 23:57 GMT
Don, thanks for the clarification. Apologies for my error.
It should be:
Sub makevalues()
mc = "q"
sr = 7
lr = Cells(Rows.Count, mc).End(xlUp).Row
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

Signature
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
>
> Max,
> The point was to replace the old nc= with the new, not to have both.