+ Reply to Thread
Results 1 to 5 of 5

VBA Format Data using R1C1

  1. #1
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    VBA Format Data using R1C1

    I have the following code that takes a set of file data and picks out the relevant data and discards the rest.

    For October (attached) it worked perfectly fine but with November data (attached) if you run the macro it leaves the 1st column blank which should be populated by the fund code.

    Can anyone advise why the 1st column is being missed even though the data is in the same format and there have been no changes to the code.

    Please Login or Register  to view this content.
    Many thanks
    Attached Files Attached Files
    Last edited by kenadams378; 12-18-2012 at 07:32 AM.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: VBA Format Data using R1C1

    The two files are very different so I don't know why you expect them to behave in the same way.Anyway, Oct stays blank for me too.

  3. #3
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Re: VBA Format Data using R1C1

    The data is different but the fundamental criteria is the same. The oct file is the completed macro version once the macro has been run and what Nov should look like.

    Data in R1C1 is same and the data in R5C2 is the same, just different values.

    The code should still return correctly as per Oct file.

  4. #4
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: VBA Format Data using R1C1

    It's no good showing us the after file for one month and the before file for the other if you are expecting us to explain why the code behaves differently for those two months.

  5. #5
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Re: VBA Format Data using R1C1

    Apologies, attached is the orignal file for Oct too.
    Attached Files Attached Files

+ 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