+ Reply to Thread
Results 1 to 2 of 2

VBA code to copy (formula =0) cells as blanks

  1. #1
    Registered User
    Join Date
    06-27-2019
    Location
    India
    MS-Off Ver
    MS 2013
    Posts
    1

    Exclamation VBA code to copy (formula =0) cells as blanks

    Hi,
    Currently using simple macros:
    Sub PasteasValue()
    Selection.PasteSpecial Paste:=xlPasteValues, SkipBlanks:=True
    End Sub

    Objective:
    Copy data in C36 to CD39 from Room Data Tab and paste under BAR Tab ( Because of formula in each cell of room data tab - excel is not picking the cell to be blank but rather taking value as 0)
    Same then needs to be done for value in C40 to CD43 and paste under CONS Tab

    Need a way to modify this code to pick 0 as blank and I can paste it as value and skip blank as well.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: VBA code to copy (formula =0) cells as blanks

    Replace pasted zeros with blanks.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Copy 5 cells over 10 cells with blanks in between data
    By Jimnou in forum Excel General
    Replies: 6
    Last Post: 08-06-2019, 05:42 AM
  2. [SOLVED] Copy cell value above to cells below if blanks
    By Fawkes_ in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-13-2017, 11:17 AM
  3. VBA Code to Copy Non Blanks/Cells with Values until Formula returns as blank
    By FLani in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-16-2013, 10:18 PM
  4. [SOLVED] VBA Macros to Look for blanks cells and copy data
    By hecgroups in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-05-2013, 02:26 AM
  5. Replies: 1
    Last Post: 10-24-2012, 01:21 PM
  6. copy cells ignoring blanks
    By twofootgiant in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-12-2011, 10:35 AM
  7. copy cells but miss blanks
    By wonderdunder in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-29-2010, 09:50 AM

Tags for this Thread

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