Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

macro is causing phase shifts due to "'s?

Posted on 2014-10-01
5
Medium Priority
?
78 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
4 Comments
 
LVL 27

Accepted Solution

by:
Glenn Ray earned 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
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.

783 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