+ Reply to Thread
Results 1 to 2 of 2

Copy data from one cell to another cell with format

  1. #1
    Registered User
    Join Date
    10-26-2004
    Posts
    8

    Copy data from one cell to another cell with format

    Hi ,
    Anyone can tell me the Vb code in Excel for copying the data from onc cell to another cell without changing the format..


    When i use like
    cells(2,2) = cells(1,1)

    It's copied the value but not the exact format ..


    Thanks in advance

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    You can copy/paste special as such:

    Range("A1").Select
    Selection.Copy
    Range("B2").Select
    Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
    SkipBlanks:=False, Transpose:=False
    Bruce
    The older I get, the better I used to be.
    USA

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1