Sub CpyPste()
Sheets("VAST").Select
Range("A1").Select
ActiveSheet.Paste '<<<------What are you pasting ? Nothing has yet been copied.
Sheets.Add After:=ActiveSheet
[QUOTE="Logit, post: 290334, member: 38719"]
Hi Logit, thanks for reply.
the data I'm copying is from a html source, that is, it needs to be manually copied into windows or Microsoft clipboard. Then press a button in excel to paste what is in the memory.
Since the clipboards can hold more than one copied object, I was hoping someone new how to reference these objects. That is, I can manually select a cell in excel, open the clipboard and click the object I want to paste (whether this is the first, second... object in the clipboard). Or maybe there is a code that will clear the first entry in the clipboard, so that when the code runs the next Paste command, the second object is pasted into Excel.
Hope this makes sense?
The data I am copying is only available from an HTML source at present. But it will does copy into relevant columns, rows.
I've attached a file showing 1 page of the data from the HTML source (the other pages have different content/columns/rows), but the data is slightly irrelevant, in that I just need to know if there is code to reference objects in the clipboard.
So as an example, if the clipboard objects where referenced as CB1, CB2... etc. Could I use something like: ActiveSheet.Paste CB2 in the code and paste the 2nd object in the clipboard
Probably not, but just need confirmation
I need to copy 5 pages, go to locations in excel and Paste the objects from windows clipboard.
I will then manipulate the data, by selecting certain columns and formatting them accordingly.
Columns("H:H").Select '<<<------Do you really need to select the entire column ?
I just haven't put the full code in here, because it's just about manipulation afterwards. I.e. I'm just stuck with this copying problem.