Solved

macro is causing phase shifts due to "'s?

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

765 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