View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Gary Keramidas[_3_] Gary Keramidas[_3_] is offline
external usenet poster
 
Posts: 72
Default better way to copy data from an embedded html box

i have some fields from a browser window pasted into excel. the become
shapes when pasted into excel. i give the shapes names starting with box 1
to box ?, depending on what's been pasted into excel.

when one shape is selected, it shows the following the the formula bar:
embed("forms.html:text.1","").

right now i have some code that will copy the data from the field:

With ws.Shapes("Box " & i)
Selection.Verb Verb:=xlPrimary
SendKeys "^A", True
SendKeys "^C", True
end with

this worked fine until my client got a new pc. i run windows 7 and don't
have an issue, but they have an acer. it also resets the keyboard indicators
so i'm wondering if there is a better way to get the text from the shape?

--


Gary Keramidas
Excel 2003