| View previous topic :: View next topic |
| Author |
Message |
briglia23 OOo Enthusiast

Joined: 24 Jun 2008 Posts: 121
|
Posted: Mon Jun 29, 2009 8:04 am Post subject: how can i cut and paste by macro |
|
|
How can i do this in OOo
| Code: |
If WordBasic.ExistingBookmark("CodInterno") Then
WordBasic.EditBookmark Name:="CodInterno", SortBy:=1, GoTo:=1
WordBasic.EditCut
WordBasic.ViewHeader
WordBasic.GoToHeaderFooter
WordBasic.EditPaste
WordBasic.CloseViewHeaderFooter
End If
|
Thanks |
|
| Back to top |
|
 |
JohnV Administrator

Joined: 07 Mar 2003 Posts: 8979 Location: Lexinton, Kentucky, USA
|
Posted: Mon Jun 29, 2009 11:25 am Post subject: |
|
|
| You can record a cut & paste macro. |
|
| Back to top |
|
 |
briglia23 OOo Enthusiast

Joined: 24 Jun 2008 Posts: 121
|
Posted: Tue Jun 30, 2009 1:37 am Post subject: |
|
|
I prefer write a macro than recorder it.
Probably is more difficult to do but let me to understand more about macro programming.
Thank you. |
|
| Back to top |
|
 |
rebelxt OOo Enthusiast


Joined: 10 Dec 2006 Posts: 114 Location: StLouis
|
Posted: Wed Jul 01, 2009 9:58 am Post subject: |
|
|
| Record a 'cut and paste' macro, then look at the generated code. That technique has helped me in the past. |
|
| Back to top |
|
 |
JohnV Administrator

Joined: 07 Mar 2003 Posts: 8979 Location: Lexinton, Kentucky, USA
|
Posted: Wed Jul 01, 2009 10:40 am Post subject: |
|
|
| Quote: | | I prefer write a macro than recorder it. |
In the case of cut, copy and paste the code you write will be much the same as the code you record. |
|
| Back to top |
|
 |
|