Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default copy font...not formatting

Hello

My knowledge is limited so i am seeking the help of a more intelligent person who can play with the code below so that it copies the values in the cells and not formulas, formatting, etc.....just the text and numbers????

Thanks all!

Sub CopyData(
Dim wsFedex As Workshee
Dim wsSummary As Workshee

Set wsFedex = Worksheets("FEDEX calculator"
Set wsSummary = Worksheets("summary"

With wsFede
wsSummary.Rows(19).Inser
.Range("A19:E19").Copy Destination:=wsSummary.Cells(19, "A"
.Range("H19:J19").Copy Destination:=wsSummary.Cells(19, "F"
End Wit

End Su

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default copy font...not formatting

To my knowledge you cannot copy-paste special to a destination in one go, so
try this

With wsFedex
wsSummary.Rows(19).Insert
.Range("A19:E19").Copy
wsSummary.cells(19,"A").PasteSpecial Paste:=xlPasteValues
.Range("H19:J19").Copy
wsSummary.cells(19,"F").PasteSpecial Paste:=xlPasteValues
End With

Cheers
Nigel


"Geoff" wrote in message
...
Hello,

My knowledge is limited so i am seeking the help of a more intelligent

person who can play with the code below so that it copies the values in the
cells and not formulas, formatting, etc.....just the text and numbers????

Thanks all!!

Sub CopyData()
Dim wsFedex As Worksheet
Dim wsSummary As Worksheet

Set wsFedex = Worksheets("FEDEX calculator")
Set wsSummary = Worksheets("summary")

With wsFedex
wsSummary.Rows(19).Insert
.Range("A19:E19").Copy Destination:=wsSummary.Cells(19, "A")
.Range("H19:J19").Copy Destination:=wsSummary.Cells(19, "F")
End With

End Sub



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default copy font...not formatting

Thanks so much...exact!!!

Can you amend, possibly with an offset. I am using a sum function an
it is moving the range down???

Cheers!!!!

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default copy font...not formatting

The ranges shown are absolute so what offset are you trying to apply ?
Sounds like you might need to change the destination range to row 20 ?

Cheers
Nigel

"gavmer " wrote in message
...
Thanks so much...exact!!!

Can you amend, possibly with an offset. I am using a sum function and
it is moving the range down???

Cheers!!!!!


---
Message posted from http://www.ExcelForum.com/



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default copy font...not formatting

destination 20....worked like a charm.

Cheers!!!!!!

--
Message posted from http://www.ExcelForum.com

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
Font Formatting Matto Excel Discussion (Misc queries) 1 July 15th 08 10:33 PM
Formatting font Molly Excel Discussion (Misc queries) 3 June 19th 06 06:05 PM
Formatting font in a list box [email protected] Excel Discussion (Misc queries) 1 May 9th 06 01:15 AM
Carrying over font formatting Ronnie R. Excel Discussion (Misc queries) 1 May 25th 05 07:51 PM
How copy format, font, color and border without copy/paste? Michel[_3_] Excel Programming 1 November 5th 03 04:43 PM


All times are GMT +1. The time now is 04:31 AM.

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

About Us

"It's about Microsoft Excel"