Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default pastespecial question

i want to paste values and formats, this option seems to be missing.

so, i if use this to copy the values
Workbooks(CurBook).Worksheets("sheet1").Range("c" & firstrow).PasteSpecial
xlValues
and then run this right after
Workbooks(CurBook).Worksheets("sheet1").Range("c" & firstrow).PasteSpecial
xlFormats

it seems to work, but also seems to slow things down a little.
i realize i could copy the values and then reformat the sheet, but ti seems
like a waste.

is there another way to combine the 2 options i want?



--


Gary



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default pastespecial question

If you have XL2002 there is an xlPasteValuesAndNumberFormats constant that
you can use.

--
HTH

Bob Phillips

"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
i want to paste values and formats, this option seems to be missing.

so, i if use this to copy the values
Workbooks(CurBook).Worksheets("sheet1").Range("c" & firstrow).PasteSpecial
xlValues
and then run this right after
Workbooks(CurBook).Worksheets("sheet1").Range("c" & firstrow).PasteSpecial
xlFormats

it seems to work, but also seems to slow things down a little.
i realize i could copy the values and then reformat the sheet, but ti

seems
like a waste.

is there another way to combine the 2 options i want?



--


Gary





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default pastespecial question

xl2003, bob.

so is this the best wat with xl2003?

--


Gary


"Bob Phillips" wrote in message
...
If you have XL2002 there is an xlPasteValuesAndNumberFormats constant that
you can use.

--
HTH

Bob Phillips

"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
i want to paste values and formats, this option seems to be missing.

so, i if use this to copy the values
Workbooks(CurBook).Worksheets("sheet1").Range("c" &
firstrow).PasteSpecial
xlValues
and then run this right after
Workbooks(CurBook).Worksheets("sheet1").Range("c" &
firstrow).PasteSpecial
xlFormats

it seems to work, but also seems to slow things down a little.
i realize i could copy the values and then reformat the sheet, but ti

seems
like a waste.

is there another way to combine the 2 options i want?



--


Gary







  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default pastespecial question

I think Bob meant to say xl2002 or higher.



Gary Keramidas wrote:

xl2003, bob.

so is this the best wat with xl2003?

--

Gary

"Bob Phillips" wrote in message
...
If you have XL2002 there is an xlPasteValuesAndNumberFormats constant that
you can use.

--
HTH

Bob Phillips

"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
i want to paste values and formats, this option seems to be missing.

so, i if use this to copy the values
Workbooks(CurBook).Worksheets("sheet1").Range("c" &
firstrow).PasteSpecial
xlValues
and then run this right after
Workbooks(CurBook).Worksheets("sheet1").Range("c" &
firstrow).PasteSpecial
xlFormats

it seems to work, but also seems to slow things down a little.
i realize i could copy the values and then reformat the sheet, but ti

seems
like a waste.

is there another way to combine the 2 options i want?



--


Gary






--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default pastespecial question

ok, i need cell formats, colors. borders , etc.


--


Gary


"Dave Peterson" wrote in message
...
I think Bob meant to say xl2002 or higher.



Gary Keramidas wrote:

xl2003, bob.

so is this the best wat with xl2003?

--

Gary

"Bob Phillips" wrote in message
...
If you have XL2002 there is an xlPasteValuesAndNumberFormats constant
that
you can use.

--
HTH

Bob Phillips

"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
i want to paste values and formats, this option seems to be missing.

so, i if use this to copy the values
Workbooks(CurBook).Worksheets("sheet1").Range("c" &
firstrow).PasteSpecial
xlValues
and then run this right after
Workbooks(CurBook).Worksheets("sheet1").Range("c" &
firstrow).PasteSpecial
xlFormats

it seems to work, but also seems to slow things down a little.
i realize i could copy the values and then reformat the sheet, but ti
seems
like a waste.

is there another way to combine the 2 options i want?



--


Gary






--

Dave Peterson





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default pastespecial question

do two .pastespecial's right in a row.

something.copy
someotherrange.pastespecial paste:=xlpastevalues
someotherrange.pastespecial paste:=xlpasteformats

Or some combination of what you need.

Gary Keramidas wrote:

ok, i need cell formats, colors. borders , etc.

--

Gary

"Dave Peterson" wrote in message
...
I think Bob meant to say xl2002 or higher.



Gary Keramidas wrote:

xl2003, bob.

so is this the best wat with xl2003?

--

Gary

"Bob Phillips" wrote in message
...
If you have XL2002 there is an xlPasteValuesAndNumberFormats constant
that
you can use.

--
HTH

Bob Phillips

"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
i want to paste values and formats, this option seems to be missing.

so, i if use this to copy the values
Workbooks(CurBook).Worksheets("sheet1").Range("c" &
firstrow).PasteSpecial
xlValues
and then run this right after
Workbooks(CurBook).Worksheets("sheet1").Range("c" &
firstrow).PasteSpecial
xlFormats

it seems to work, but also seems to slow things down a little.
i realize i could copy the values and then reformat the sheet, but ti
seems
like a waste.

is there another way to combine the 2 options i want?



--


Gary






--

Dave Peterson


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default pastespecial question

that's what i ended up doing, just wondered if there was another way.

thanks for confirming

--


Gary


"Dave Peterson" wrote in message
...
do two .pastespecial's right in a row.

something.copy
someotherrange.pastespecial paste:=xlpastevalues
someotherrange.pastespecial paste:=xlpasteformats

Or some combination of what you need.

Gary Keramidas wrote:

ok, i need cell formats, colors. borders , etc.

--

Gary

"Dave Peterson" wrote in message
...
I think Bob meant to say xl2002 or higher.



Gary Keramidas wrote:

xl2003, bob.

so is this the best wat with xl2003?

--

Gary

"Bob Phillips" wrote in message
...
If you have XL2002 there is an xlPasteValuesAndNumberFormats
constant
that
you can use.

--
HTH

Bob Phillips

"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
i want to paste values and formats, this option seems to be
missing.

so, i if use this to copy the values
Workbooks(CurBook).Worksheets("sheet1").Range("c" &
firstrow).PasteSpecial
xlValues
and then run this right after
Workbooks(CurBook).Worksheets("sheet1").Range("c" &
firstrow).PasteSpecial
xlFormats

it seems to work, but also seems to slow things down a little.
i realize i could copy the values and then reformat the sheet, but
ti
seems
like a waste.

is there another way to combine the 2 options i want?



--


Gary






--

Dave Peterson


--

Dave Peterson



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
pastespecial question Paul Excel Programming 5 May 19th 05 01:07 PM
PasteSpecial Kevin Excel Programming 3 October 7th 04 01:07 PM
PasteSpecial KL[_3_] Excel Programming 1 July 8th 04 02:07 PM
pastespecial Claude Excel Programming 2 February 24th 04 01:21 PM
pastespecial on a worksheet question mike Excel Programming 1 February 11th 04 08:03 PM


All times are GMT +1. The time now is 12:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"