Solved

macro is causing phase shifts due to "'s?

Posted on 2014-10-01
5
64 Views
Last Modified: 2014-10-07
The button "Update Stock Codes" is used to run a macro that automatically fully parses product code information from its original form into a usable data set.

I am trying to parse the sheet attached source data sheet "codes update" but have noticed the macro is returning some errors. Specifically where "'s are used within the original data it is causing the information to shift into the wrong cell.

I have highlighted (yellow) some of these errors on the results sheet to give an example.

I'm pretty sure the coding of the macro will need to be altered to prevent these phase shifts form happening?
EE-SalesReportingUtility--2-.xlsm
codes-update--01.10.14-.txt
results.xlsx
0
Comment
Question by:robmarr700
  • 2
  • 2
5 Comments
 
LVL 27

Accepted Solution

by:
Glenn Ray earned 500 total points
ID: 40356293
Rob,

It appears that this file - codes-update--01_10_14-.txt - has the same double-quote issue found in some of the other import files (PO Status, for one).  However, this issue did not exist in the original stock codes file (see attached), so something must have been done differently in the export.  Additionally, blank rows are not truly blank, as in the previous file (there are several spaces).

There is no change needed to the Excel application; only a clean up to the file, which I've done here and am attaching for your use.  

You'll need to find out why the stock codes export is different.  If there is indeed no way to replicate the original export process, then we can look at modifying the Excel application to accomodate this.

Regards,
-Glenn
allcodes.txt
EE-SalesReportingUtility--2b.xlsm
codes-update--01-10-14-.txt
0
 
LVL 27

Expert Comment

by:Glenn Ray
ID: 40364006
Rob,
Did you have any issues or questions?

-Glenn
0
 

Author Comment

by:robmarr700
ID: 40365412
Hi Glenn,

Sorry for the delay.

Seeing as you have resolved my issue I am going to close the question. It is unlikely the export file will be altered for some time.

However I am going to investigate why the export is different as will raise a new question depending on the results.

Thanks

Rob
0
 

Author Closing Comment

by:robmarr700
ID: 40365414
Excellent solution!
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now