+ Reply to Thread
Results 1 to 3 of 3

How do you do cut/paste in macro or VB?

  1. #1
    Registered User
    Join Date
    03-05-2005
    Posts
    8

    How do you do cut/paste in macro or VB?

    I want to do a CUT and PASTE operation behind the scenes instead of relying on an unsophisticated user. I have not seen how to do this with a formula, so am wondering of other options.

    Here's what I want to do:

    If B2 is not blank, I want to move the contents of cell A2 into B2.

    Thanks,

    Pete

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Pete,

    The Formula below will automatically copy cell A2 into B2 if A2 is not blank, otherwise B2 is left blank.

    Place this Formula in B2:

    =IF(ISBLANK(A2) = False, A2, "")

    Hope this helps,
    Leith Ross

  3. #3
    Registered User
    Join Date
    03-05-2005
    Posts
    8

    Solution doesn't fit

    Let's say that I am in cell X16 (hidden). I want to look at the contents of cell B2 to see if the cell contains anything. If B2 is not empty (contains something) I want to move the contents of cell C1 into cell B2.

+ 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