Create A Basic Stock Quote Reader?

Jul 12, 2012

I am trying to create a basic stock quote reader.

I recorded what happens when I use the "from web" tool from the data tab. I then tried to modify it by allowing me to manually (with the inbox) put in the ticker that I want. When I run it, it does nothing. When I manually put in the ticker symbol for the company, it works.

For instance, I I were to replace

"URL;http://ca.finance.yahoo.com/q?s=" & TICKER & "&ql=1", Destination:=Range("$A$1"))
with
"URL;http://ca.finance.yahoo.com/q?s=ATVI&ql=1", Destination:=Range("$A$1"))

It would then work, but I would have to manually change it every time.

Here is the code
___________________________________________________________
Sub Macro1()
Dim TICKER As String
InputBox ("enter ticker symbol")
Cells.Clear
With ActiveSheet.QueryTables.Add(Connection:= _

[code]...

View 1 Replies


ADVERTISEMENT

Setup A Basic Stock Control Spreadsheet

Feb 22, 2009

I've set-up a basic stock control spreadsheet. Part of this requires updating prices of products. My approach was to use 3 columns A,B & C. C would show the current unit price of a product. Where there is a change in price this would be entered in A which would then result in a new average unit price to be calculated automatically in C. When ever this change occurs i need the then 'old' price which was in C to be shown in B aswell.

I've tried using various averaging formulaes but i'm thinking they were probably to basic or just plain wrong

View 9 Replies View Related

Using VBA To Create Printable Quote?

Sep 18, 2012

I have been using Excel for many years but haven't dived much into using VBA. I believe it holds the answer to my question. I have developed a spreadsheet with 10 tabs that is used for billing customers. I'd like to take it a step further and, on a separate tab, have a quote automatically populated and then be able to be printed. I need for the VBA to scan certain areas in each tab to see if data is present or greater that 1. If there is data present, it would need to list the content of 3 cells (description, quantity, and total cost). I know that I can directly link but it needs to be dynamic and only display/show data that is present (as not all cells will be needed for every client).

View 2 Replies View Related

How To Create Order And Quote Numbers

Sep 7, 2013

Way to create order and quote numbers. I'm currently starting an order number with a "O" in front of the order number and a "Q" in front of the quote number but this presents a problem when trying to create the next consecutive number because the number has a letter at the start of it so I can't use the method plus 1. I'd just simply remove the "O" and "Q" from these numbers but I need the numbers to be unique from each other and putting the "O" or "Q" in front was the only thing I could come up with to avoid the numbers ever being identical. I often need to look up these numbers and return the values in that row so the numbers need to be unique from one another.

The information for quotes and orders is saved on separate workbooks but I'd still like the numbers to be unique from one another.

Having a letter at the start of each number or a work around for using the plus 1 method when you do have a letter at the start of the number?

View 9 Replies View Related

Create Basic UserForm. TextBox, Buttons...

May 25, 2007

I want to do is have a User form that allows a user to add a new column across several sheets (i.e. b2, then c2, then d2) where what the user has selected from 3 defined ranges (in this case commodity, pack_type and pack_spec) is concatenated. see the example attached. So for exmaple, I would like the choice of adding into cell B2 across all sheets (except sheet pack) gold solid 5kg. Then I can add the next into c2. I have tried searching few a few examples of userforms with various problems but I dont know how to code it correctly.

View 4 Replies View Related

Stock Chart - Create Multiple Short Vertical Line?

Jan 5, 2014

I have created three lines between two point.

But if the two point is located at the same horizontal line.

The line cant be produced.

book1.xlsbbook1.xlsb

View 10 Replies View Related

How To Create Stock Column Chart With Error Bars (Both Gender Together)

Jan 3, 2013

I have a series of data and want to create a chart looking like this

Google Image Result for [URL] ...

Where it shows min/max on the error bars, quartile 1/3 on the box and median as a scatter plot. My data is a simple table

Group
Amount F
Amount M
Median F
Median M
Median F+M

[Code] ....

Here F = Female, M=Male and the chart should show all calculation for both gender together (I have another thread up where the gender are separated with the Title (How to create a stock column chart with error bars?? (Both gender separated))

View 1 Replies View Related

Use IF And AND Functions To Create A Basic Input-output System

Nov 18, 2009

I'm trying to use IF and AND functions to create a basic input-output system. The problem I have (more details below) is the 64 limit when the potential inputs could be infinite.

For values entered into a cell between 1 and 10, this should produce an output of 0.00 in another A value higher than 10 should output as 1.00, and from then an extra 1.00 is added for every '10' added. There is no limit on the input ie 1 = 0.00, 11 = 1.00, 29 = 2.00 and so on.

View 2 Replies View Related

Create Basic Leaderboard In Excel / Google Spreadsheet

Jan 3, 2014

I would simply like to know how to create a basic ranked leaderboard through EXCEL or Google Spreadsheet, which i will later on implement on a community forum. I would like 2 entries for the leaderboard column titles, being:

Column A: PLAYERS
Column B: POINTS

Then under A i will be typing all players manually, and similarly for B with points.

View 3 Replies View Related

Cell Update With Real Time Stock Quotes For Particular Stock

Aug 7, 2012

What is the easiest way to have a cell update with real time stock quotes for a particular stock?

View 4 Replies View Related

Stock Order Sheet To Be Created From Stock Inventory

Jan 8, 2014

I have created a stock sheet on Sheet1, i have say 100 items and each item has a min and max stock order. Once the item hits a min low, the last cell (O) will display an order needs to be placed.

I was wondering if there way a way that on sheet2, it can calculate all the data on sheet1 and if there is stock that needs to be ordered, it will appear on sheet2?

This way i can just print sheet2 and send it to the supplier without having the entire 100 items displayed -if it does not need to be ordered?

View 7 Replies View Related

Bar Code Reader

Mar 30, 2007

I'm making a fairly simple database system that logs students in and out of a computer lab using the bar code printed on every student's ID card. Can any one suggest a particualr model of barcode reader that is reliable and doesn't have any problems working with a VBA application? I prefer something that doesnt have to be swiped, for example, a handheld retail-style barcode reader, something that students can simple place they're ID infront of to capture the information without swiping or pressing any buttons. Are all barcode scanners the same (when it comes to reading the informatio nand transfering it to VBA). What I mean is, do I have to get a specific kind of scanner to match the barcodes we use?

View 3 Replies View Related

Close PDF / Adobe Reader Files In VBA

Apr 29, 2014

I have some VBA code which opens a pdf file in Adobe reader based on a cells Hyperlink reference. I want to add some code to close all instances of adobe reader before I call the function to open the correct pdf.

View 3 Replies View Related

Excel 2003 :: HYPERLINK To Open PDF File Reader

Feb 27, 2013

How do I create a hyperlink in an Excel 2003 file that will open a PDF file with Reader?

I have an Excel file of hundreds of Customer names and invoice numbers. I have a directory of PDF files. The name of each PDF file is the customer name, a space, and the invoice number. I should be able to have a column in the Excel file that contains a formula that creates a hyperlink to open the corresponding PDF file.

I used the HYPERLINK function and built the path and file by concatenating information. When I click the hyperlink, I keep getting an Excel error: Cannot open the specified file.

Do you think this problem is something of my own doing or some "undocumented feature" in Excel?

View 1 Replies View Related

Using VBA Code In Visual Basic: Develop A Stand Alone Program In Visual Basic

Jun 3, 2006

I would like to do is develop a stand alone program in Visual Basic ( not in Excel VBA) to update the price file in our Portfolio system automatically using the downloaded Excel format file csv extention file from the BigCharts. But before that, I need to export the *.pri file from our Portfolio system in to Excel which still saves as *.pri extention. Then once it updates, I import the updated *.pri file back in our Portfolio program. I understand that the Excel VBA code can be incorporated in Visual Basic code provided there is an object declaration for Excel file (In this case eventhough the both files are in Excel format, they don't have xls extention). how to use external files and Excel VBA code in Visual Basic?

Below is the code that I currently have in Visual Basic. What I'm trying to accomplish is using the ticker (eg. msft) as a keyword search to look up in the price file. If found , the price of that ticker from the test.csv file will be copied in to the price file which is test.pri. I haven't ran it yet.

Sub UpdatePrice(BigChartPath As String, BigChartName As String, AxysPricePath As String, AxysPriceName As String)
'Below are Excel VBA codes
'Uses the test.csv to look up tickers in test.pri and update the price in it
Dim PriceFile As Workbook, BigChartFile As Workbook
Dim PriceFileSheet As Worksheet, BigChartSheet As Worksheet
Dim MaxRows As Long
Dim PriceFileRow As Long
Dim BigChartRow As Long
Dim BigChartFound As Boolean
Call CheckBookOpen(BigChartPath & BigChartName)
Call CheckBookOpen(AxysPricePath & AxysPriceName)
Set BigChartFile = Workbooks(BigChartName) 'Big Chart website imported CSV file saved as test.csv...............

View 5 Replies View Related

Macro To Generate New Quote

Mar 19, 2009

What I require is the macro code to achieve the following:-

Cells A2, B2 and C2 will be completed manually, however, when a new quotation is required the user must enter a new Control Reference Number in cell E2 and then press the Generate button.

Once pressed the Macro behind the button will generate the following :-

(a) Quote number underneath the last one in column 'A'

(b) Change Ref underneath the last one in column 'B' (this was the ref number input above in E2)

(c) today’s date underneath the last one in column 'C'

(d) a blank Quote Tab i.e. labelled the next number in the sequence i.e. Quote 2, Quote 3 etc which should be created copying the Template Tab

N.B. the total number of Quotes in any one work book should be a maximum of 30 so some form of checking would be required.

View 9 Replies View Related

Calculate A Quote Over 4 Years

May 24, 2012

I need to calculate a quote over 4 years but the first and last years are not full 12 months.

On Row 20 are monthly costs for each year. The start and end date is in Row 3.

I need to find a formula that can calculate ANNUAL TOTAL for the all these year in Row 22 populated automatically, not just manually times the months in each cell.

Here is a sample file.

View 9 Replies View Related

Single Quote Display Only

Dec 12, 2006

Someone might find this interesting. Inherited a file that need to total columns but almost 50% of the file has cells w/ the single quote tick infront of the number.

Ex '2257894 or '2234. How can one remove those single quotes out of a cell? NOTE: Cell values are not the same length.

View 9 Replies View Related

Quote To Sale Calculator

Jul 29, 2009

I work in sales and when under target I need to know how much more i need to sell to hit target. e.g

quotes 10 sold 1 currently at 10%

my target is 50%

at the minute i would have to work this out manually

like i need to quote and sell the next 8 to hit the 50% target.

What can i use on excel putting my current quotes and sales and my target in so it gives me the quotes and sales i need to do?

View 9 Replies View Related

How To Find Double Quote In Excel

Sep 5, 2013

Any escape characters in Excel. I'm trying to do something like this:

=FIND(""",A1)

View 5 Replies View Related

Quote Worksheet With Validated List

Feb 20, 2008

i want to create a quote worksheet with a type of material validated list, a type of stock validated list, a volume of material sum, a cost per lb of material varible and a typ of stock % markup to quote stock material. i have a pdf of what i want it to look like i just need help formulating it. thanks. Auto Merged Post;here is a link to the pdf. i am not sure what to call what i want to do...
[url] Auto Merged Post;here is the xls file.

View 8 Replies View Related

Remove Single Leading Quote From All Cells

Feb 19, 2013

Is there a way to clean all of the single leading quote marks from all cells in a sheet?

'Bob
'Tom
'Jerry

to

Bob
Tom
Jerry

I'm importing data and I have several columns to deal with and will never know how many columns/rows are in a sheet.

View 9 Replies View Related

Trying To Avoid Quote And Comma Stripping In Formulas

Apr 18, 2006

I have to create a formated file to test our system every other week, I want to create a File Generator using Excel and the replacement values forumla "& A1 &". However the file is in a CSV format containing a lot of quotes and when I attempt to use a line of the file in a formula with "& < Cell> &" excel reports errors, if you accept excels help it strips out the quotes and commas. Anyway around this? having to have a user save the file is CSV format would be to complicated. Sample file attached.

View 2 Replies View Related

How To Detect Leading Or Trailing Apostrophe And Quote Characters

Jun 23, 2014

I want to alert a user that he or she has typed in a text string that begins or ends with an apostrophe ' or begins or ends with a quotation mark " so that they can take corrective action in removing these characters. The reasons for this are superflous to this post but what I thought was a logical answer returns a formula error. Here's the scenario:-

A user enters a string of text in cell A1.

Cell B1 checks if the text, if any, in A1 begins or ends with a ' or a " and if it does, returns an "Error" message

The formula I've tried in B1 is =IF(OR(LEFT(A1,1)="'",LEFT(A1,1)=""",RIGHT(A1,1)="'",RIGHT(A1,1)=""")),"Error","Ok") but Excel will have none of it.

View 9 Replies View Related

Excel 2013 :: Remove Characters Before / Between And After Certain Occurrences Of Quote

Jan 27, 2014

I am using Microsoft 2013 and am looking for 4 formulas in order to split 1 cell in to 4 (across same row). Number of characters varies between each instance of """.

I would like the formulas to start in column B-D (data in A)

I am looking at formulas based on specific instances of a quote mark in cell from data in column A

Formula 1 - Return with characters up to and including the 5th instance of """
Formula 2 - Return with characters after 5th """ and up to and including 6th """
Formula 3 - Return with characters after 6th """ and up to and including 7th """
Formula 4 - Return with characters after the 7th instance of """

Example below...
Cell A1
xxyy","aabb","ee,ff,""gghh"hh,"llmm,mmnbijp"oossww"

Desired results
Cell B1 - Formula 1
xxyy","aabb","ee,ff,"
Cell C1 - Formula 2
"gghh"
Cell D1 - Formula 3
hh,"
Cell E1 - Formula 4
mmnbijp"oossww"

View 6 Replies View Related

Remove Leading Single Quote From Text Cells

Oct 9, 2009

I am a SAS programmer and often use SAS Proc Export to dump data to Excel. Sometimes the data is an Excel formula, e.g.
=hyperlink("#Sheet1!r1c1","click here")

Because the data is text, what get's put in the cell is '=HYPERLINK("#Sheet1!r1c1","click here") (note leading single quote).

I cannot use the replace function to edit them out, so must hand edit each one out -tedious at best.

View 4 Replies View Related

Concatenate-Join Quote Marks Around Text Code

Oct 10, 2006

Trying to build array elements from a list

19909
19953
etc

My thought is in helper column to concatenate the quotes and comma "xxxxx", Then I will copy paste special transpose and should have an array list

I tried ="""&A2&"","
Returns
"&A2&",
But I need it to return "19909",

View 4 Replies View Related

Excel 2003 :: Removing Single Quote Of Contents Of Several Cells?

Jan 31, 2014

In a large range of cells, how I can remove the single quote at the beginning of the contents of each cell? (without single quote they would be formulas). It didn't work using CTRL + L and trying to replace the single quote by blank applying this to the whole range. I am currently using Excel 2003.

Example:

cell a1 contents: '= IF (I17 = "----------", "----------", E17-C17)
cell a2 contents: '= IF (I18 = "----------", "----------", E18-C18)
cell a3 contents: '= IF (I19 = "----------", "----------", E19-C19)
....
etc., etc., etc.

View 2 Replies View Related

Stock Levels

Mar 27, 2008

how to go about actually doing it,

For an old project which was a till system i had two sheets,a data sheet and till system sheet , the data sheet contained :

example:
column A - numbering of the data (to be used with V Lookup)
column B - product name
Column C - price

This would then be replicated in the next 3 cells for the next data category.

Till system then had a combo box which had a cell link on the current page and data from the data sheet and then i had a price column next to i (containing V Lookup formula) the price then changed depending on the choice in the combo box.

I want to incorporate combo box's in to this new project. If i can then get some kind of stock thing i intend on then using conditional formating to colour code stock levels to show severity of needing to order etc..

View 14 Replies View Related

VBA For Stock Allocation

Jun 13, 2008

Let say I have 5 shops: A, B, C, D, and E

They request for stock replenishment from warehouse as follows:
A: 4 pieces
B:2 pieces
C:3 pieces
D:3 piece
E:3 piece

But since the warehouse only have 12 pieces of this product so need to allocate to the shops in rounds that is:
Round 1: one piece is allocated to each shops (Stock left=12-5=7)
Round 2: one piece is allocated to each shops (Stock left=7-5=2)
Round 3: one piece each is allocated to A and C (the priority should be B but since B just requested for 2 pieces only which has been fulfilled) since there are no more stock

how to write the scripts to do this allocation.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved