Which "specific" row would you be referring to?
A user-selected row or a row with a particular value?
How would the macro locate the row?
Do you have a macro? Post the code.
Here is a simple macro that copies a selected row or rows to row 1
Sub copy_row()
Selection.Copy Destination:= _
ActiveSheet.Range("A1")
End Sub
No warning, just overwrites.
Gord Dibben MS Excel MVP
- Show quoted text -
Hi Gord!
What I do is I locate the current month in a specific column starting
from the top of the file. Whwn I get a hit I would like to put that
specific row on top. Here is the code:
Range("E:E").Select
mois = Split("bidon jan fév mar avr mai jun jul aoû sep oct nov déc",
" ")
findvar = mois(Month(Date))
With ActiveSheet.Range("E:E") ' SUPER SEARCH...!
Set c = .Find(findvar, LookIn:=xlValues)
If c Is Nothing Then Exit Sub 'Pas trouvé!
End With
Range("A" & c.Row & ":" & "A" & c.Row).Select