+ Reply to Thread
Results 1 to 3 of 3

Protecting formats when pasting in.

  1. #1
    Registered User
    Join Date
    02-08-2008
    Location
    Co. Down, Ireland.
    Posts
    53

    Protecting formats when pasting in.

    Hi all,

    I've recently developed a spreadsheet and a lot of the information feeding into it will be pasted.

    I noticed that the formating of borders and text changes when the data is pasted.

    Is there a simple maro I could add to stop this from happening so that only the values are entered into the format that I have developed?

    Many thanks.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Quote Originally Posted by Stevie-B
    Hi all,

    I've recently developed a spreadsheet and a lot of the information feeding into it will be pasted.

    I noticed that the formating of borders and text changes when the data is pasted.

    Is there a simple maro I could add to stop this from happening so that only the values are entered into the format that I have developed?

    Many thanks.
    Hi, yes, just use:

    Please Login or Register  to view this content.
    Modify the Sheet and Range references as appriopriate


    Rgds

  3. #3
    Registered User
    Join Date
    02-08-2008
    Location
    Co. Down, Ireland.
    Posts
    53
    Thanks Richard.

    This is what the macro looks like in VBA,

    Please Login or Register  to view this content.
    A runtime error came up '1004'?

    If there are many sheets within the workbook do I need to change anything?
    Last edited by Stevie-B; 04-11-2008 at 06:11 AM.

+ 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