Re: Deselect a range?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



You didn't say where to copy to but try this ONE liner. Change to suit.

Sub copyTextColumnA()
Range("A2:a" & Cells(2, "a").End(xlDown).Row).Copy Range("i19")
End Sub

--
Don Guillett
SalesAid Software
dguillett1@xxxxxxxxxxxxx
"StargateFan" <IDon'tAcceptSpam@IDon'tAcceptSpam.com> wrote in message
news:g607r251ceedk6ad3ea8nd8bt0oeehvlab@xxxxxxxxxx
This one has been asked many times before, I see from the archives.
But I can't get anything recommended to work.

Here is the code:
************************************************************************************
Sub SelectTextColumnA()
Range("A2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
End Sub
************************************************************************************

If I select something else, as recommended, that doesn't get rid of
tghe marching ants.

If I set the cuut/copy mode to false, as also recommended, the text
isn't in the clipboard so it nullifies the code:
Application.CutCopyMode = False

In fact, any of the other recommendations tried do that. The text is
no longer in the clipboard so the whole macro doesn't work. Is there
a way to get the text into the clipboard yet de-select the range?

I've tried so much from the archives this morning and nothing works so
appreciate any help.



.



Relevant Pages

  • Re: Deselect a range?
    ... Sub SelectTextColumnA() ... I would like the range to be copied to the clipboard but to then have ... any of the other recommendations tried do that. ...
    (microsoft.public.excel.programming)
  • Re: Deselect a range?
    ... You have to do something with the selection before clearing the clipboard ... Sub SelectTextColumnA() ... any of the other recommendations tried do that. ...
    (microsoft.public.excel.programming)
  • Re: Deselect a range?
    ... Don Guillett ... You have to do something with the selection before clearing the clipboard ... Sub SelectTextColumnA() ...
    (microsoft.public.excel.programming)
  • Re: Cmon guys, give us some recomendations
    ... >> Thought I should clarify my request for recommendations. ... The sound quality is not ... sub crossed over at 40 HZ with and without a a high pass on the magnapans, ...
    (rec.audio.tech)
  • Re: Deselect a range?
    ... Sub SelectTextColumnA() ... Don Guillett ... I would like the range to be copied to the clipboard but to then have ...
    (microsoft.public.excel.programming)