Call a Sub from another Worksheet
I can't seem to get this to work:
Dim wb As Workbook
Set wb = Workbooks.Open("z:\journal entry.xlsm")
Application.Run wb.Name & "!CreateSubmittal"
The Sub CreateSubmittal is designated as "Public Sub CreateSubmittal()" or
The Sub is in the THisWorkbook object or Module1. Neither works.
Hi Mike, It's all in the Quote marks. Note the Apotrophe enclosed in double
quotes on both ends of the file name variable.
Application.Run "'" & wb.Name & "'" & "!CreateSub...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
<>>< ><<> ><<> <>>< ><<> <>>< <...2 buttons change to 1 button for one go
I have 2 buttons to append data, 1st to put the file into a folder, the 2nd
is to make an append from that folder.
How can I make it to be just one button. This is my VBA:
The 1st one:
On Error GoTo Err_SendtoOutbox_Click
Call Shell("xcopy C:\Churchdata\BkEnd\Hahomion_be.mdb
The 2nde one:
Private Sub HFSUPDate_Click()
On Error GoTo Err_HFSUPDate_Click
...Multiple invoices to multiple customers from one order?
I think that this is not possible, but I need to ask since it will be
happening on a regular basis:
We have a new contract with a customer who has independent contractors. The
contractors will come in and purchase a specific large item from us - mother
company will pay a specific monetary amount and the contractor is responsible
for the rest.
So basically, we need to create one order, but have two invoices to two
different customers that are linked to the original order.
Is there ANY way to do this.
You can use National Accounts for this. You can setup your main contra...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...Outlook sending problem
How can I resolve this problem:
Could not deliver the message in the time limit
specified. Please retry or contact your administrator.
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. ...Macro for blocker from using cell range
Is there a way to write code that can unlock a worksheet (w/password)
allowing the user access to functionality while relocking (w/password) the
worksheet should the user mouse click or move into a range of cells that
would normally be locked?
Assistance and a learning opportunity is always appreciated...
With "qwerty" as defined name for range =Sheet1!$A$1:$F$12,Day!$A$26:$F$34
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim myrange As Range
Set myrange = Me.Range("qwerty")
On Error GoTo ws_exit:
Applica...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???
...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...Report from Access 2003 to 2007 problem
I have converted a database designed in 2003 to 2007. One of the reports
unfortunately does not work the same as it did in 2003. The report
generates invoices and on the form I had put in a text box with the Control
Source property set to [Enter Invoice Date] which brings up a dialog box
when the report is run asking the user to put in a date. This works ok in
2003 but comes up as #Error in 2007 in the report generated.
In 2007 report design, the text box has a green triangle on it indicating an
error "Invalid Control Property: Control Source" & "No such field in t...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...excell problems
how can i put TWO LINES OF NUMBERS IN ONE CELL
Please keep all correspondence within the Group, so all may benefit!
"THE JOKER" <THEJOKER@discussions.microsoft.com> wrote in message
how can i put TWO LINES OF NUMBERS IN ONE CELL
If you want to put two lines of data into one cell, use the concatenat
function. This joins up to 30 cells of information. The easy wa...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
...Conditioal formatting problem
I have a column with conditional formatting applied. Say I'm formatting
The column shows the number within a processing cycle which need
warning traffic lights when certain days are reached so far I have set
Condition 1 shows orange if the cell value is between 9 and 11.
Condition 2 shows red if the cell value is greater than or equal to
My problem is that I need a 3rd condition to grey out cell E4 if a date
is entered into cell G4. I've tried all sorts but the formatting will
Firstly can someone suggest a formula for condition 3.
Secondly do I actua...Outlook appointments in extendend DST time frame are now off one h
I read through the prolific Microsoft documentation on the DST change. My
interpretation on how to deal with my XP SP2 clients with Outlook 2003 on
Exchange 2000 (on Win2K) was this.
1. Patch the XP SP2 clients
2. TZEdit the Windows 2000 server where Exchange 2000 is installed
3. Since most users do not have adequate privileges to run the Outlook tool
TZMove, don’t bother giving it to them.
4. Use only the Exchange tool (MsExTmz.exe) (Also requires TZMove) to
correct all the time zone issues in mailbox/calendars for all whopping 60
While the process was clear as mud, I though...Multiple Pivot tables from One selection
I would like 2 or 3 pivot tables to use on pivot table selection. I.e
the selection criteria of the 1st pivot table on the menu page
determines what the page data of the other pivot table displays on
seperate sheets where the other pivot tables are contained. So the
selection of one pivot table controls the rest.
dapo's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=29967
View this thread: http://www.excelforum.com/showthread.php?threadid=496616
Check the "Synchronize 2 Piv...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...Populating a field conditional of the input of two cells
I'm trying to write a simple formula that puts a specific answe
conditional of the answers supplied in two other cells. I have followe
the formula structure as I understand it, however microsoft Excel X
doesn't like the (and statements. Could anyone enlighten me on th
correct way of doing this?
Many thanks. (The formula is below)
> =IF(AND(F4=1,F6="XLPE"),"1",IF(AND(F4<>1,F6="XLPE"),"2",IF(AND(F4=1,F6="PE"),"3",IF(AND(F4<>1,F6="PE"),"4",IF(AND(F4=1,F6="PVC"),"5&quo...Problem on Windows XP Pro x64Bit and System Registry Hive file.
I am italian, but I haven't received no response in italian newsgroup...
I have the following computer:
OS: Win XPpro Corporate x64Bit
CPU: Core2Quad Q9650
RAM: Kingston ValueRAM DDR2 4GB CL6
HDD: CaviarBlue 500GB WD x3
VGA: Sparkle GeForce 9400GT 512MB
I installed various graphics programs such 3DSMAX9 x32 and x64Bit
Entire suite Adobe CS4 Master Collection
Nero Reloaded 9
A few days I have bought online in more than 2 memory modules (for
achieve the 8GB total) identical to the DDR2 memory that I had and
2GB Module 1..."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...Problem in online transactions
I am still getting the OFXHTTP400 error on T Rowe Price accounts. It gets
the pricing information but no additional transactions.
I suspect this is a corrupted file. I ran a cleanup and it 18 transactions,
none of them TRP but I know the records are intermingled...
I have tried this on Money 2004 and Money 2006 on separate computers. Both
exhibit the same behavior.
I am really starting to get to my wits end - this software is far from the
reliable type one needs for perosnal finances. Any ideas how I can fix this?
...Operating fill handle and moving entire cells with keyboard
Is there any way of operating the fill handle or moving
entire cells/range of cells with the keyboard rather than
using the mouse (drag and drop).
Copy or Cut
Select range Select top left corner of range.
Hold Shift & press End, Arrow down or right.
Copy:= Ctrl + C
Cut:= Ctl + X
Paste Ctl + V
To Fill Down or Right
Ctrl + D or ctrl + r
Use Excel Help and search for keyboard shortcuts for a
>Is there any way of operating the fill handle or moving
>entire cells/range of cells with the keyboard rathe...