Solved

macro is causing phase shifts due to "'s?

Posted on 2014-10-01
5
66 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

914 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

23 Experts available now in Live!

Get 1:1 Help Now