PC Review


Reply
Thread Tools Rate Thread

How To Copy Rows without Work Art

 
 
John
Guest
Posts: n/a
 
      19th Dec 2004
I have some Word Art in say Rows 9-23, I use some Macro code to copy cells
9-23 down to 10 grouped rows below 23, but everytime I run the Macro it also
copies a 'New' Work Art over the existing Art below Row 15. My fear is that
my file size will balloon. My code simply states

Sheets("Starters").Select
Rows("9:23").Select
Selection.Copy
Range("A25").Select
ActiveSheet.Paste
Range("A41").Select
ActiveSheet.Paste

How can I copy Rows 9-23 without the WorkArt also (which is 'floating' over
Rows 14-18)


Thanks


 
Reply With Quote
 
 
 
 
John
Guest
Posts: n/a
 
      19th Dec 2004
Another possibility which I have tried is to select ALL Wordart between say
Rows 23-300 and delete them. However going to Select Object, selects every
object in the whole worksheet, some of which are Command buttons.

I've also tried creating a Macro to delete the WordArt, however it seems
everytime a WordArt is created it is assigned a unique number, hence you
can't run the macro a second time







"John" <(E-Mail Removed)> wrote in message
news:Eydxd.44194$(E-Mail Removed)...
> I have some Word Art in say Rows 9-23, I use some Macro code to copy cells
> 9-23 down to 10 grouped rows below 23, but everytime I run the Macro it

also
> copies a 'New' Work Art over the existing Art below Row 15. My fear is

that
> my file size will balloon. My code simply states
>
> Sheets("Starters").Select
> Rows("9:23").Select
> Selection.Copy
> Range("A25").Select
> ActiveSheet.Paste
> Range("A41").Select
> ActiveSheet.Paste
>
> How can I copy Rows 9-23 without the WorkArt also (which is 'floating'

over
> Rows 14-18)
>
>
> Thanks
>
>



 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      19th Dec 2004
If there are no other objects you want copied|pasted, maybe you could just use a
couple of pastespecials:

Option Explicit
Sub testme()

Dim fRng As Range
Dim tRng As Range

With Worksheets("starters")
Set fRng = .Rows("9:23")
Set tRng = .Range("a25")
End With

fRng.Copy
tRng.PasteSpecial Paste:=xlPasteFormulas
tRng.PasteSpecial Paste:=xlPasteFormats

End Sub



John wrote:
>
> Another possibility which I have tried is to select ALL Wordart between say
> Rows 23-300 and delete them. However going to Select Object, selects every
> object in the whole worksheet, some of which are Command buttons.
>
> I've also tried creating a Macro to delete the WordArt, however it seems
> everytime a WordArt is created it is assigned a unique number, hence you
> can't run the macro a second time
>
> "John" <(E-Mail Removed)> wrote in message
> news:Eydxd.44194$(E-Mail Removed)...
> > I have some Word Art in say Rows 9-23, I use some Macro code to copy cells
> > 9-23 down to 10 grouped rows below 23, but everytime I run the Macro it

> also
> > copies a 'New' Work Art over the existing Art below Row 15. My fear is

> that
> > my file size will balloon. My code simply states
> >
> > Sheets("Starters").Select
> > Rows("9:23").Select
> > Selection.Copy
> > Range("A25").Select
> > ActiveSheet.Paste
> > Range("A41").Select
> > ActiveSheet.Paste
> >
> > How can I copy Rows 9-23 without the WorkArt also (which is 'floating'

> over
> > Rows 14-18)
> >
> >
> > Thanks
> >
> >


--

Dave Peterson
 
Reply With Quote
 
John
Guest
Posts: n/a
 
      19th Dec 2004
Thanks Dave

"Dave Peterson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> If there are no other objects you want copied|pasted, maybe you could just

use a
> couple of pastespecials:
>
> Option Explicit
> Sub testme()
>
> Dim fRng As Range
> Dim tRng As Range
>
> With Worksheets("starters")
> Set fRng = .Rows("9:23")
> Set tRng = .Range("a25")
> End With
>
> fRng.Copy
> tRng.PasteSpecial Paste:=xlPasteFormulas
> tRng.PasteSpecial Paste:=xlPasteFormats
>
> End Sub
>
>
>
> John wrote:
> >
> > Another possibility which I have tried is to select ALL Wordart between

say
> > Rows 23-300 and delete them. However going to Select Object, selects

every
> > object in the whole worksheet, some of which are Command buttons.
> >
> > I've also tried creating a Macro to delete the WordArt, however it seems
> > everytime a WordArt is created it is assigned a unique number, hence you
> > can't run the macro a second time
> >
> > "John" <(E-Mail Removed)> wrote in message
> > news:Eydxd.44194$(E-Mail Removed)...
> > > I have some Word Art in say Rows 9-23, I use some Macro code to copy

cells
> > > 9-23 down to 10 grouped rows below 23, but everytime I run the Macro

it
> > also
> > > copies a 'New' Work Art over the existing Art below Row 15. My fear is

> > that
> > > my file size will balloon. My code simply states
> > >
> > > Sheets("Starters").Select
> > > Rows("9:23").Select
> > > Selection.Copy
> > > Range("A25").Select
> > > ActiveSheet.Paste
> > > Range("A41").Select
> > > ActiveSheet.Paste
> > >
> > > How can I copy Rows 9-23 without the WorkArt also (which is 'floating'

> > over
> > > Rows 14-18)
> > >
> > >
> > > Thanks
> > >
> > >

>
> --
>
> Dave Peterson



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy specific rows to different work sheets Joy Microsoft Excel New Users 3 7th Apr 2010 03:17 PM
Copy rows from one worksheet automatically, ignore rows that are b Kris Microsoft Excel Worksheet Functions 2 10th Oct 2008 10:28 PM
Copy pasting Rows, but need to Delete any Shapes/Pictures that are within copied rows Corey Microsoft Excel Programming 2 1st Aug 2007 03:02 AM
Copy rows of data (eliminating blank rows) from fixed layout =?Utf-8?B?U3dlZXBlYQ==?= Microsoft Excel Misc 1 14th Mar 2007 12:05 AM
Hide Rows - copy and paste only rows that show =?Utf-8?B?QWNjZXNzMTAx?= Microsoft Excel Worksheet Functions 3 1st Mar 2006 01:39 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:42 AM.