+ Reply to Thread
Results 1 to 5 of 5

Copy and change format cell?

  1. #1
    Registered User
    Join Date
    05-08-2019
    Location
    Czech Republic
    MS-Off Ver
    2016
    Posts
    86

    Copy and change format cell?

    I have a question, is it possible to simply copy something and then paste that values in concrete format (xxx.xxx.xxx)/3symbols.3symbols.3symbols by macro?

    In attachment is preview what I need.

    Or by macro change the format of cells it would be the best.


    Start macro and format cells will change to (xxx.xxx.xxx).
    X can be letter or number.

    And I need seperate that by dots.

    Example: 1UA.B20.A40

    Thanks for any advice.
    Attached Files Attached Files
    Last edited by MartinV10; 08-16-2019 at 02:35 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Copy and change format cell?

    This post looks a lot like your precedent one ? https://www.excelforum.com/excel-gen...ml#post5177011

  3. #3
    Registered User
    Join Date
    05-08-2019
    Location
    Czech Republic
    MS-Off Ver
    2016
    Posts
    86

    Re: Copy and change format cell?

    @Pepe Le Mokko it was in other group. I thought its possible to do that by simple function. Now I wanna VBA code? So I changed group? Is it false?

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Copy and change format cell?

    As you are willing to go the macro way, it's OK.
    Perhaps add a link to this thread in your other one with a short explanation to avoid confusion ?

  5. #5
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Hi ! Try this !


    According to the attachment as a starter :

    PHP Code: 
    Sub Demo1()
        
    With [E8]
            .
    Value2 Format(.Value2Application.Rept("@@@."Len(.Value2) \ 3))
        
    End With
    End Sub 
    ► Do you like it ? ► ► So thanks to click on bottom left star icon « Add Reputation » !

+ 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. Replies: 4
    Last Post: 10-05-2017, 09:37 AM
  2. Determine if Cell Format is M/D/YYYY and Change to Numeric Value in YYYYMMDD Format
    By bryanmarks in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-16-2017, 06:16 PM
  3. [SOLVED] VBA To change Date format in Column A and Copy a cell if it contains specific Text
    By zaska in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-10-2016, 10:45 AM
  4. Show Error when a cell with number format change to date format
    By delroba in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-08-2015, 02:57 AM
  5. Replies: 3
    Last Post: 02-24-2015, 02:58 AM
  6. [SOLVED] Copy content of several columns into a single cell and change format on separate lines
    By Biffilicious in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-31-2012, 05:05 AM
  7. [SOLVED] Lock Cell Format - Allow copy and paste of data without format change
    By Chris12InKC in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-11-2006, 12:50 AM

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