Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Gracie Hughes   on Sep 21 In MS Office Category.

  
Question Answered By: Chuong Tran   on Sep 21

If you were using this in one session you could use a static variable for the
row number. You would need a method for setting it the first time  it was used
then increment it each time it was used after that.

However if you close Excel, I think, you would lose the static. Not so good.

If the row  you want to paste  to is always the next row after the last used row
you could use


Range("AJ51").Select
Selection.End(xlDown).Select
Selection.Offset(1, 0).Select
Selection.PasteSpecial Paste:=xlPasteValues, Transpose:=True

Share: 

 

This Question has 7 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Selecting the row below Or get search suggestion and latest updates.


Tagged: