Insert row(s) with vba
I'd appreciate some help to determine if I'm attempting the impossible...
We have a workbook to generate proposals. Each proposal contains numerous
sections. Each section has many line items. The first item in section 1 is
numbered 01-001, the next 01-002 etc. The 01 is the section number, the 001
is the item number. Iuse the formula:-
to automatically generate the item number row by row. The value in $A$2 is
the section number. This way I can use vba to insert a ro...Replace values in chart
I have some 20 charts in one file linked to a sheet (Sheet A). Now I
have to replicated these charts except that they now should be linked
to another sheet (Sheet B).
I dont want to individually go to each chart, right click and change
the data source. Is there a simple way to do it, something like Ctrl
H, wherein you replace all?
Thanks in advance.
Make a copy of the first workbook, copy the data from sheet B onto sheet A,
and the charts will now display the new data.
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, In...How do I print a list of the directory contents
I need to print the disk directory contents. In DOS this was possible. Is it
possible in WORD? Thanks
No - but you could use the freeware Printfolders utility you can download
from my web site that will produce a text listing that you can open in Word.
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <...printing copies
under print options: Number of copies___. It will only print out 1 copy. I
say 5 and it still prints out 1. I am a new user of 2007 Excel
I suspect the problem is with the printer.
Try getting the newest driver
Bernard V Liengme
Microsoft Excel MVP
remove caps from email
"Val in Texas" <Val in Texas@discussions.microsoft.com> wrote in message
> under print options: Number of copies___. It will only print out 1 copy.
> say 5 and it still prints out 1. ...Excel macro to insert rows if a cell does not equal the value above that cell
I have a spreadsheet listing columns of information for many different
people. If more than one row exists for the same person, I'd like to
insert 2 rows after the row so that the group is separated from the
next group. For example, here's how the data appears now:
LastName Account# Balance
Martin 1 500.00
Martin 2 750.00
Smith 5 100.00
Thomas 9 900.00
Here's what I'd like it to look like after running the macro:
LastName Account# Balance
Martin 1 500.00
Martin 2 75...Copy buttons by rows
I'm learning Excel by myself and I've run into something I can't figur
out. I have a button at the end of a row that takes 4 seperate cell
from that row and puts them in 4 seperate cells on another sheet.
want to be able to make 1000 buttons that will be at the end of eac
row that takes the data from that row and puts it on another sheet jus
so I can print it, but I don't want to make them one at a time. Unles
there is another way...
Optitron's Profile: http://www.excelforum.com/member.ph...Creating a Formula to Format Column automatically?
Hello. I'm trying to figure out a way to create a formula or a macro t
run on a column in my worksheet that says basically IF COLUMN D SAY
JOE BLOW, THEN COLOR = GREEN, IF COLUMN D = SALLY SMITH, THEN COLOR
RED, IF COLUMN D SAYS MIKE IKE, THEN COLOR = BLUE.
Anyone have any ideas or suggestions? :confused
bludovico's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=1480
View this thread: http://www.excelforum.com/showthread.php?threadid=26434
Look at Conditional Formatting in...Create row lower border that looks like "accountant single" underline?
I'm trying to format a spreadsheet so that a row has a lower border that
looks like the "accountant single" underline - something like this:
___________ __________ _________ ________
instead of a continuous line like this:
Is it possible to do this as a border? The accountant-single underline
(applied as a font attribute) only displays if there is data in the cell,
and I want it to be there whether or not there is any data.
Many thanks for any help with this.
"Edward Mendelson" <edward_mendelson@z...Ghosted print and print preview
I have a problem with printing in excel. The print and print preview options appear ghosted. I still can print through the print icon on the toolbar. Any suggestions???
...code wild card value for form variable
i use a check box in an option group to generate a specific value for a
using the following code
If Forms![fee sched form]![select region] = 2 Then
Forms![fee sched form]![region var] = "Roch"
If Forms![fee sched form]![select region] = 3 Then
Forms![fee sched form]![region var] = "CNY"
this variable is hidden on the form and value is used a query.
how do i code this, so i can put "*" in the variable and thereby get all
values in the query?
the query code generates like "*" but i do not know how to code via the
fo...Print Dynamic Range
I have a basic excel template used for ordering parts. It runs from A1:N250
and I can print easily repeating rows 1:11 on each page (contains job details)
. Trouble is sometimes there may only be 10 part numbers requiring only first
page and I finish up throwing away trees by printing entire sheet! I know I
can reset print area each time am setting this up on Sharepoint for multi
users and need a macro/button to recognise number of items and print
accordingly. Any help greatly appreciated
Message posted via http://www.officekb.com
'change this cons...TCP/IP printing
Hello, I have a networking question. I have a print device with a
static IP address on one network. A computer on another network can
connect to the printer (NBT is enabled and so is LPR) and the drivers
are installed but cannot print. I know this is correct behavior but
want to know in detail why it seems to half work. I am guessing it
has to do with port 138,139 and 515 but not positive. Probably a
better question to ask a networking forum but hey.
can you access the printer through the printer IP address?
:D Just chill
-pls post your feedback on...Number to Text Value
I have data coming from Access via ODBC with a value of 0 (NO) or 1 (YES)
from a tickbox in Access.
Is there a way I can covert these 0 & 1's to a text word in excel in another
0 = NO or FALSE
1 = YES OR TRUE
Thanks in Advance.
"=?Utf-8?B?S1lNTw==?=" <KYMO@discussions.microsoft.com> wrote in
> I have data coming from Access via ODBC with a value of 0 (NO) or 1
> (YES) from a tickbox in Access.
> Is there a way I can covert these 0 & 1's to a text word ...highlight row #2
Is there any way to have excel automatically highlight the row of a selected
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
.FormatConditions.Add Type:=xlExpression, Formula1:="TRUE"
.LineStyle = xlContinuous
.Weig...Default Date Value
How do I get a record create date to automatically fill in on a field in that
record as the default value?
In your table you could set the default value to the field as =Date() or set
the default value of your field on the form to =Date()
"BigK9" <BigK9@discussions.microsoft.com> wrote in message
> How do I get a record create date to automatically fill in on a field in
> record as the default value?
I recommend making it the default value of the field in the tabl...Printing booklet
I am producing a 50 to 60 page booklet using Pubisher
2003. The page format will be using 8.5 x 11 paper
folded in half. I need to print both sides of the
paper. How do I print the booklet so that I print half
the project on one side of the paper and the other half
on the back. Will publisher keep track of the pages so
that for example; that page 2 and page 50 print on the
same side/sheet of paper so when all pages are printed,
folded and bound the book reads correctly.
more info...I am using a single side printer so I have to
run the pages through twice ...Check printing in GP 7.0
I have check payments for vendors, where I'm dealing with
LOCAL CURRENCY & FORIGHN CURRENCY. When I paid by check in
LOCAL CURRENCY then the amount in words prints perfectly
but if i paid by check in FORIGN CURRENCY then the amount
in word prints in numeric which i want to print amount in
words instead of numbers.
Please help me to print checks amount in words for FORIGN
CURRENCY as well.
Your suggestion would be appricated on above issue
...Excel BUG (All Versions) Excel Macro Margins using Print Preview
Where can i post this BUG? (Excel Macro Margins using Print Preview)
Is there an Excel BUG reporting site?
1) New worksheet, write something in it
2) Start recording a new macro
3) File -> Print Preview
4) Click on the Margins Button, the page margins will appear, so that you
can visually change and move them
5) Set one or more margins
6) Close the Print Preview
7) Stop the Macro
What happened is that in the VBA code there will be writtenthe following
..LeftMargin = Application.InchesToPoints(0.91)
..RightMargin = Application.InchesToPoints()
Where in second line ther...How do I change color of cells, columns and rows in Excel?
I cannot seem to be able to change the background colors of columns, rows and
cells in Excel. I had no problem when I was using Office 97.
How can I do this with Office 2003?
Can you see the colors when in Print Preview or when you print the worksheet?
If this is a problem with all Excel files, the Windows OS
high contrast setting may be turned on. There is information in the
following MSKB article:
OFF: Changes to Fill Color and Fill Pattern Are Not Displayed
Gord Dibben Excel MVP
On Mon, 10 Jul 2006 19:20:01 -070..."Tiled" print setting.
I just want the page that I designed to print on one page! I can't change the
print setting "tiled" and as it is, it's printing on four pages all broken
It is possible that you have created your document on a paper size that is
not supported by your printer. Try changing your paper size to 8 1/2 by 11
and see if the print options are more to your liking.
"MissMarple" <MissMarple@discussions.microsoft.com> wrote in message
>I just want the page that I designed to print on one ...CHtmlView and Printing
The CHtmlView is giving me alot of head aches. Here is what I am doing. I
am opening an XML file (being formatted using XLST) in a hidden CHtmlView
and printing it.
Here is how the process goes:
1. I create the XML file on the fly.
2. load the XML file in to CHtmlView.
3. Once loaded I tell it to print the resulting HTML page.
4, I need to delete XML file after the printing is done. (this is the
I can't figure out how to find out when the CHtmlView is done printing.
CHtmlView::OnFilePrint is asynchronous. And CHtmlView doesn't tell me that
it is currently p...Problems with printing
I have an application, which has been working without problems for the last
7 years. The application has some printing capabilities. Now, we have just
gotten a new printer (HP Laserjet CM4370), and when I try to print, my
The app crashes in the print setup dialog even before I press OK. If I
select any other printer as default printer, the app doesn't crash. Then I
can show the print setup dialog without problems. But then, when I select
the CM4370, the app crashes again, even if I do not press OK.
Even if I choose to not show the print setup dialog, and j...Printing--How not to Print Bkground
In my wrksht there is a cell range highlighted with an
autofill color. We use this to show the user where to
enter the data. Is there anyway to avoid printing this
background color. We want to keep the color in the cell
range in our wrksht but we dont want it printed.
Hi Jeff, have you tried Print preview, Setup, Sheet, Black & white?
"Jeff" <firstname.lastname@example.org> wrote in message
> In my wrksht there is a cell range highlighted with an
> autofill color. We use this to show the user where t...SCALING OF DECIMAL VALUE RESULTED IN DATA TRUNCATION
I'm getting a "SCALING OF DECIMAL VALUE RESULTED IN DATA TRUNCATION"
error when I run a query that has an expression in it. I'm using
linked (ODBC from iSeries) tables and I think it is because the data
type is set to decimal but I can't change it because it is a linked
table. Any suggestions.
On Sep 7, 12:14 pm, SteveM <Ste...@discussions.microsoft.com> wrote:
> What is your expression?
> "James" wrote:
> > Hi,
> > I'm getting a "SCALING OF DECIMAL VALUE RESULTED IN DATA TRUNCATION&quo...Find Date in range and scroll down to next row
I have a sheet(1) frozen in A4.
Want a code to do the following:
If date = today
then select row
font.color. index = 15
scroll down to next row (next row and below visible).
How do I solve?
Do you want to simply loop through all the occupied cells in column K and
color the entire row if the date = today? I don't understand the "next row
and below visible". What is visible and what is not visible? Post back and
provide more info. HTH Otto
"tomjoe" <email@example.com> wrote in message