+ Reply to Thread
Results 1 to 6 of 6

Paste only the first seven digits

  1. #1
    Registered User
    Join Date
    08-09-2012
    Location
    Vancouver BC
    MS-Off Ver
    Excel 2010
    Posts
    49

    Paste only the first seven digits

    Hi, I have a line of code that copies several cells and pastes the values in another WB. One of the cells being copied ("A12"), I only need the first 7 digits. What would work here, I've tried several variations to no avail. Thanks, Chris

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    07-10-2017
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2013
    Posts
    430

    Re: Paste only the first seven digits

    Try replacing "Range("A12").Text" with Left(Range("A12").Text, 7)

  3. #3
    Registered User
    Join Date
    08-09-2012
    Location
    Vancouver BC
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Paste only the first seven digits

    I managed to get this one, thanks until the next time

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Paste only the first seven digits

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  5. #5
    Registered User
    Join Date
    08-09-2012
    Location
    Vancouver BC
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Paste only the first seven digits

    Quote Originally Posted by danielexcelvba View Post
    Try replacing "Range("A12").Text" with Left(Range("A12").Text, 7)
    Hi, thanks for your answer, I got it myself at the same time! Rep added!

  6. #6
    Valued Forum Contributor
    Join Date
    07-10-2017
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2013
    Posts
    430

    Re: Paste only the first seven digits

    Thanks for the rep!

+ 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] Looking for a formula to count single digits vs. double digits?
    By mnlaw in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-29-2023, 02:20 PM
  2. Copy 10 digits in a numbers and paste to another column
    By ash3angel in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 10-31-2016, 07:56 AM
  3. [SOLVED] Cells contains number to split in every 5 digits and paste in a column
    By ash3angel in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 10-27-2016, 01:43 PM
  4. [SOLVED] How to multiply a constant to only first 10 digits of 45 digits in a Logical Function
    By gz3s36 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-10-2014, 02:40 PM
  5. Changing digits after decimal to specific digits based on a criteria
    By mpatel000 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-28-2012, 02:41 AM
  6. Paste number remove digits and round
    By WickedPesto in forum Excel General
    Replies: 2
    Last Post: 05-22-2009, 06:09 PM
  7. Replies: 0
    Last Post: 03-15-2006, 11:55 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