+ Reply to Thread
Results 1 to 5 of 5

Filing Macro - Simple ... It would seem

  1. #1
    Registered User
    Join Date
    08-07-2013
    Location
    Liverpool
    MS-Off Ver
    Excel 2010
    Posts
    9

    Smile Filing Macro - Simple ... It would seem

    Hi All,

    I'm trying to get a basic filing macro to work. I'm trying to copy a numeric value from one sheet to another. This is the code I have so far;

    Please Login or Register  to view this content.
    The code will only copy values from row D. It seems to be ignoring the E column, i.e. the Else argument.

    Any ideas what I can do to resolve this?

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,650

    Re: Filing Macro - Simple ... It would seem

    not seeing data it is just guessing. I expect in column E you have different values than you expect.

    Try:
    Please Login or Register  to view this content.
    PS. Thread title shall be "executive summary of the problem - some people do use http://www.excelforum.com/search.php - think of them writing title pls.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    08-07-2013
    Location
    Liverpool
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Filing Macro - Simple ... It would seem

    It's seeing the data, it's placing '0' integers in the cells.

    The first cell row source in the argument places the actual values in the required sheet i.e. E to D it places the E values and leaves a D as 0 and the inverse is also true.


    Please Login or Register  to view this content.
    Also, apologies. I'll be more comprehensive next time.
    Last edited by WillJ; 04-10-2014 at 02:17 PM.

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,650

    Re: Filing Macro - Simple ... It would seem

    So it is writing 0s and shall some number? The one you stored in amount variable?
    This is what I suggested to test with MsgBox. If it is, what happens - the code is right, the data is bad. May be thhere are extra spaces, may be it has comma as decimal separator (not dot) etc.etc.
    Use appropriate "preprocessing" - may be Val or Trim or Cdbl and Replace or ....

  5. #5
    Registered User
    Join Date
    08-07-2013
    Location
    Liverpool
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Filing Macro - Simple ... It would seem

    Thanks for you help with this. I've got that issue resolved now, it was the "-" in the code that was causing the error. Many thanks : )

    I've got an type mismatch error popping up. It's strange, in the test it appears to be working fine in both columns however in the actual application, even with the - taken out it is only filing the values from the first column i.e. "E" (the message box is displaying values from column E and the code is effectively sorting it to its the correct cells). Once it gets to a value in "D" the error occurs. Any ideas?
    Please Login or Register  to view this content.

+ 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. Auto-filing a Series
    By forgameslive in forum Excel General
    Replies: 4
    Last Post: 08-04-2013, 05:59 PM
  2. How do you create a live, filing list?
    By pitufo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-05-2010, 01:55 PM
  3. Retrieve information of computer to do filing
    By Kenji in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 03-24-2010, 03:53 AM
  4. Filing data into drip slots
    By Justinmih in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-04-2008, 07:04 PM
  5. Filing system
    By poppedinsouled in forum Excel General
    Replies: 4
    Last Post: 04-13-2007, 04:47 PM

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