Hello,
I'm trying to write a vba code to say:
In sheet "ADI MMS" copy all the data from F2 until "Blank" as value only.
Your help is greatly appreciated.
Thank you.
Hello,
I'm trying to write a vba code to say:
In sheet "ADI MMS" copy all the data from F2 until "Blank" as value only.
Your help is greatly appreciated.
Thank you.
Last edited by clprdctn; 03-13-2014 at 03:54 PM.
Hello,
Like this?
Please Login or Register to view this content.
GC Excel
If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.
I assume that when you sayyou mean all the data in column F starting at row 2. Is that correct? Once you copy the range value, what do you want to do with it?copy all the data from F2 until "Blank"
You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
Practice makes perfect. I'm very far from perfect so I'm still practising.
Sorry GC, It's my mistake I should've explained better.
Hi Mumps,
From Cell "F2" all the way down (Always on Column F) until Blank. And all I need to copy the data to the clipboard.
If refering to across Columns then maybe:
Otherwise, ignore this post.Please Login or Register to view this content.
I don't know if there is a way that you can copy only the values. Normally what is done is that you copy the range in question and then you can paste the values only using 'xlPasteValues'.
Okay, I can work around that later but is there a code to copy the data to clipboard for this?
Try:Please Login or Register to view this content.
I got:
Run-Time Error '91'
Object variable or with block variable not set.
Which line was highlighted?
LastRow = Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
That is strange since it is simply looking for the last used cell in your sheet. As long your sheet is not blank, it should work.
What do I add to this to say select sheet ADI MMS?
This will copy the range from the sheet "ADI MMS".Please Login or Register to view this content.
Still getting the same error with same highlighted area.
I got this to work:
Please Login or Register to view this content.
Glad it worked out.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks