copying cells from source to destination values

sapxl

New Member
Joined
Jun 20, 2020
Messages
24
Office Version
  1. 2016
  2. 2013
  3. 2011
  4. 2010
  5. 2007
Platform
  1. Windows
Hello Friends,

How r u all.. hope all u r well...

I have a query which relates to copying data from one sheet to another sheet within a workbook with vba... while copying from source-sheet cells to the destination, it is getting copied, but the formula (only values need to copy instead of formula) and format of the source is also get copied, format need not be source, it would be of destination (i.e, without format copying). can anyone help me on this. Appreciate your help in this regard.

Thanks,

vba code :

VBA Code:
Sub copytoinvoce()

'Range.Copy to other worksheets
    Worksheets("Sheet6").Range("D8").Copy Worksheets("Invoice").Range("D7")
    Worksheets("Sheet6").Range("F8").Copy Worksheets("Invoice").Range("D8")
    Worksheets("Sheet6").Range("H8").Copy Worksheets("Invoice").Range("D9")
    Worksheets("Sheet6").Range("J8").Copy Worksheets("Invoice").Range("D10")
    Worksheets("Sheet6").Range("L10").Copy Worksheets("Invoice").Range("F14")

 

    Range("F14").Select
    Selection.Copy
    Range("F14").Select
    Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
        SkipBlanks:=False, Transpose:=False
   
    'Disable marching ants around copied range
    Application.CutCopyMode = False
    
    End Sub


-------




copybtwsheets vba.xlsm
C
9
Sheet6




copybtwsheets vba.xlsm
I
8
Invoice
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
can we trim the first part of the name before underscore, and copy that part into the invoice sheet D7 cell.
 
Upvote 0

Forum statistics

Threads
1,214,784
Messages
6,121,536
Members
449,037
Latest member
tmmotairi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top