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


ADVERTISEMENT

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

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

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

Macro To Generate 3 Tabs

Jul 24, 2008

I am badly in need of a macro that will create 3 tabs using a value in sheet1 cell a1.The tabs created should be unique in the workbook and no sheet has to be duplicated or cancelled.After creating the tabs the macro should also create a list of the 3 tabs created in a sheet called list.

View 8 Replies View Related

Macro To Generate New Tabs & Name Them

Jul 29, 2009

I have a spreadsheet with a table of data. Each row needs to have its data on a separate tab, so they can be presented in idividual reports. Each tab then needs to be given a name which corresponds to the values in the column A from the spreadsheet.

I can generate a new tab with the following:

Sheets.Add After:=Sheets(Sheets.Count)
Sheets("Sheet1").Select
Sheets("Sheet1").Name = ""

But I have a few issues with this... Firstly, the number of new tabs required will change, so it needs to replicate the formula for the number of entries in the reference table. Secondly, this relies on the new sheet being "sheet1" which I'm not happy with in case someone accidently creates a sheet 1 by hitting the new tab button. I then don't know how to give each one a separate name based on column A from the reference sheet.

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

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

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

Generate A Workbook With Macro Included

Feb 17, 2007

Using either excel VBA or a .NET tool/functionality, is it possible to generate a new excel workbook which contains macros? I need to dynamically create excel files which will have macro functionality already built in.

This should be equivalent to asking how to use VBA or .NET to change/create macros in an existing Excel file.

This is weird, meta-macro stuff, I know. Any help at all would be much appreciated. If any of you know how/if any of this is different in 2007, it'd be amazing.

View 5 Replies View Related

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 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

Macro To Generate Email When Number Reached?

Feb 6, 2014

I have a spreadsheet that in column A has someones name, in Column B it has a number.

For example

Column A Column B
Bob Smith 1999

I am looking for a macro that will automatically send an email to this address for example test@test.com, when the number in column B reaches 1200.

I need the email to have in the body - "Bob Smith has reached 1200"

I need this macro to run against 20 sheets in my workbook.

View 4 Replies View Related

Excel 2007 :: Use Macro To Generate A Form

Mar 11, 2012

I have a sheet with 500 rows and 20 columns. I want to put an input box and a button on a different sheet. What I would like to happen is that when you put the criteria in the input box and click the button it opens the form for the row corresponding to the criteria and allows you to edit the 20 columns. Excel 2007.

View 6 Replies View Related

Macro To Generate C++ Header File Using Excel

Feb 19, 2014

I am thinking to make a excel file which can generate a headre file for my c++ source file. Previoulsy we used to generate .h files using excel but i dont know the logic behind that(Hope some macros using for that).

MY header file contains this many data and my intention is to give "MYapp Alpha 0.0.3" through excel file because the version number changes for each release. If i used excel file then I can edit that excel and it creates .h file for me, later some more informations i can make configurable through excel file

#define APP_FLASH_APP_ID 0x123
#define APP_VERSION_NUM "MYapp Alpha 0.0.3 "
#define APP_PRODUCT_NAME "TPI "
#define APP_DESCRIPTION_STR APP_PRODUCT_NAME APP_VERSION_NUM
#define APP_RELEASE_DATE_STR "10/11/13"
#define APP_SOFTWARE_PARTNUM_LEN 10

View 3 Replies View Related

Vba/macro: Generate Individual Requests From A Summary

Feb 7, 2007

The problem I have is I need to generate individual requests from a summary (which I can do as long as the max values do not fluctuate)

e.g.
Number required each week
Tool wk1 wk2 wk3 wk4

flogger 1 4 2 5
wrench 2 3 1 5
socket 6 10 2 8

so for the flogger I would need to write 8 tool requests in total: 1 for wk's 1-4, 2 for wk's 2-4, 2 for wk2 only, and 3 for week 4 only.
There must be a quick way of doing this using VBA.

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

Macro To Compare The Data Between 2 Files And Generate The Count?

Apr 25, 2014

Creating a Macro which compare the Customer ID's present in Column H of Sample1 file with Column B of both Sample1 and Sample2 files.

The Count of Sample1 file should come in Column I and the count of Sample2 file should come in Column J of Sample1 file.

After above steps macro should automatically pick the lowest value (value should be greater than 0, if value is 0 than macro should consider it as blank) from Column I and J and paste it to Column K.

In Sample1 file I had also shown that how the data should look after running the Macro.

View 2 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

Userform Macro To Use Textbox Input To Generate Blank Rows?

Mar 28, 2014

I have a userform with 16 Textboxes Named "Text1" through "Text16". What I am trying to do is apply code that if there is content in the textbox it generates a new row after row15 and inputs the text in cellA of that row. Ex. "Text1" = JOE "Text2" = TONY......Hit Commandbutton1 on userform. It inserts Row16 puts "JOE" in A16.....then sequentially it inserts Row17 puts "TONY" in A17.

View 14 Replies View Related

Excel 2003 :: Macro That Will Generate A List Based On Cells Value

Mar 6, 2012

I have a workbook that has 30 tabs in it. Each tab is a report card for students. What I'd like to do is create another tab with a button on it that when I hit the button it will search through each tabs range of D12:D40, D48:D76, D84:D112, D120:D136, J12:J40, J48:J76, J84:J112, and J120:J136. And if any of these cells has an MS in them then this new sheet I have created will list each students name which is in cell E5 and list what they recieved the MS for. This will be in the same row number but in column B. So if cell D12 has an MS in it then this report will list the students name and what's in cell B12.

Windows XP
Excel 2003

View 3 Replies View Related

Macro To Generate Message Box Based On Colour Of Cells On A Sheet

Mar 29, 2007

I have built conditional formatting into some cells on ' Sheet 1' and would like a message box (saying "Check errors before closing") to appear when the user tries to close the workbook if any of these cells are coloured red (ColourIndex 3).

View 3 Replies View Related

Macro To Generate Word Document From Excel With Built In Header And Footer Template

Jan 23, 2014

All I want is to generate a word document with built in word header and footer (header and footer style name is "alphabet") based on the values which i mention in excel(path,word file name and header content.

View 1 Replies View Related

Macro To Generate A Line Graph With Coloured Pointers And Lables Based On Table

Sep 30, 2009

column A = Date : 01/02, 07/02, 14/02, 21/02, 28/02 (x-axis : shows when the table is updated)
column B = project: x, x, x, x, ,x (name of the project and trend line)
column C = Delivery Date : 01/05/2009, 08/05/2009, 20/05/2009, 30/05/2009, 28/02/2009 (plotted on the graph)
column D = Status : Green, Amber, Red, Green, Blue (status of the project. the points should be the same colour as is described in the table)
column E = Comments: original, delay, supply, out of money, on track, delivered-wow! (these comments will pop up if the user holds the cursor over a point)

NB Y-axis scale : 01/01/2009 to 31/12/2009 with increments of 14 days. this will be the same scale used for all projects.

Date Project Delivery Date Status Comments
01/02 x 01/05/2009 Green original date
07/02 x 08/05/2009 Amber delay supply
14/02 x 20/05/2009 Red out of money
21/02 x 30/05/2009 Green on track
28/02 x 28/02/2009 Blue delivered-wow

So id like the macro to draw the line for project x based on the 'delivery date'. The points should be coloured according to the 'status' column and when you hover the mouse over the point the data lable will show up taking info from the 'comments' column.

Would it be possible to create a macro that will be able to generate this graph automatically. I have a few projects id like to do the same thing for.

View 14 Replies View Related

Macro To Generate Outlook Emails With Data / Information From Multiple Rows Of Data?

Apr 30, 2014

I am attempting to create a macro to generate emails based on data in a sheet. The goal is to run the Macro, and have it generate emails to send to contractors letting them know what they are going to be paid. For instance:

Name in Column J
Email in Column L
Memo in Column N
Balance in Column T
Due Date in Column P
Week Ending Date in Column H

Now what I would like to happen, is to tie a macro into a button that will create the email as follows:

To Field: Email address from Column L
Subject: "Company Payment Remittance Payment Date *Date from Column P*"
Body: Hello *Name from Column J*,
For *WE Date in Column H* you will be paid *Balance from Column T* for the time worked of *Memo in Column N*

Now the tricky part is that I want the email to contain all line items for each email address. So instead of sending one email per line, have the macro automatically put all of the information that needs to be sent to one email address into the message. I don't know if that is possible, but it sure would make my life easier if it was.

I have attached a sample workbook of the data that will be used

Example Workbook for Email Macro.xlsx

View 1 Replies View Related







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