+ Reply to Thread
Results 1 to 3 of 3

VBA macro to re-format data

  1. #1
    Registered User
    Join Date
    05-19-2009
    Location
    Hitchin, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    VBA macro to re-format data

    Hi all,

    A simple VBA question.

    I am using (or trying to) an excel macro to read temperatures from a file and output them in a new formatted file. The macro is;
    Please Login or Register  to view this content.
    I want;

    ^^^970.031
    3000001
    ^^^934.616
    3000002
    ^^^882.253
    3000003
    ^^^560.491
    3000004
    ^^^575.562
    3000005

    I get;

    970.031
    3000001
    934.616
    3000002
    882.253
    3000003
    560.491
    3000004
    575.562
    3000005

    How do I modify the macro to give me what I require.

    ie 3 spaces, temperature
    0 spaces, point

    Thanks for reading. All help gratefully received.

    M
    Last edited by royUK; 05-19-2009 at 05:00 AM.

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

    Re: VBA macro to re-format data

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    05-19-2009
    Location
    Hitchin, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: VBA macro to re-format data

    oops!! Sorry about that, Roy. I'll read the forum rules when I have time. Thanks for the advise.

    M

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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