+ Reply to Thread
Results 1 to 3 of 3

Macro to Copy a Merged Cell Without the Blank Spaces After

Hybrid View

  1. #1
    Registered User
    Join Date
    12-23-2011
    Location
    Rochester, NY
    MS-Off Ver
    Excel 2003
    Posts
    33

    Macro to Copy a Merged Cell Without the Blank Spaces After

    Hey again,

    I was wondering if there is a way to use a macro to copy a merged cell without the blank spaces at the end? I'm attaching an example worksheet and I need to have the user copy the value of cell H3 so they can paste it in a program without the spaces at the end caused by the merged cells.

    Thanks everyone!
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Macro to Copy a Merged Cell Without the Blank Spaces After

    Will the user be doing a paste-special? In that case, the spaces will vanish on their own. Have you tried doing a simple copy onto the program? Are you getting any trailing spaces?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Macro to Copy a Merged Cell Without the Blank Spaces After

    Simple answer ids to never use merged cells, they nearly always cause problems
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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