+ Reply to Thread
Results 1 to 2 of 2

how to extract the numbers on a specific row with ("0.000") 3 decimals

  1. #1
    Registered User
    Join Date
    02-07-2022
    Location
    algeria
    MS-Off Ver
    16
    Posts
    1

    how to extract the numbers on a specific row with ("0.000") 3 decimals

    i want to convert an excel sheet to notepad as you can see below ,my only missing conversion is to extract the numbers on a specific row with ("0.000") 3 decimals :



    Private Sub CommandButton1_Click()



    Dim filename As String

    Dim linetext As String

    Dim my_range As Range



    filename = ThisWorkbook.Path & "\APCS ligne" & ".txt"

    Open filename For Output As #1

    Set my_range = Worksheets("APCS ligne").Range("A1:P500")



    For i = Range("W1") To Range("U1")

    For j = Range("W1") To Range("V1")





    linetext = IIf(j = 1, "", linetext & "|") & my_range.Cells(i, j)





    Next j



    Print #1, linetext



    Next i



    Close #1



    MsgBox ("data transfer done !")



    End Sub



    thanx in advance

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,086

    Re: how to extract the numbers on a specific row with ("0.000") 3 decimals

    Untested, but try:
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. Vlookup to extract value where theres specific name in Text eg "Nels"
    By Howardc1001 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-06-2019, 05:21 AM
  2. [SOLVED] Identify specific numeric values in a cell such as "1" without counting "11" as two "1"s
    By MHanna39 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-03-2019, 01:35 PM
  3. [SOLVED] Macro to extract specific number from string starts with "18"
    By rajuuuuu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2018, 08:21 AM
  4. Replies: 4
    Last Post: 04-05-2015, 01:59 AM
  5. Replies: 6
    Last Post: 03-10-2015, 01:28 PM
  6. Replies: 2
    Last Post: 01-27-2013, 12:20 AM
  7. [SOLVED] sort "numbers" with decimals
    By Melissa in forum Excel General
    Replies: 4
    Last Post: 09-02-2005, 10:05 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