Run macro automatically.
How do I make a macro run automatically when a worksheet it is attached to is
right click on the sheet tab>view code>left window worksheet>right window
"Excel macro" <Excel firstname.lastname@example.org> wrote in message
> How do I make a macro run automatically when a worksheet it is attached to
I am unable to find "activate " when I right click on worksheet. ( i assume
that you are referring to the windo...OLE notes
Is there somewhere where I can set a preference on where OLE notes are stored
for a company using GP 9. Right now, by default, the notes are stored in a
folder on the desktop of Windows Servers 2003. Since I have multiple
companies running, this is rather untidy. :-) More importantly, because of
backup considerations, I want to set the default path to a location in the
To determine where OLE Notes are stored in Microsoft Dynamics GP, follow
1. Locate the dex.ini file in the folder where Microsoft Dynamics GP is
2. Double-click the dex.ini f...Need to set extra hard return
This must be a very basic thing, but I have been asked to submit a paper with extra hard returns in Word. How do I do this? Can anyone help me out please?
Viju vijuhegde wrote:
> This must be a very basic thing, but I have been asked to submit a
> paper with extra hard returns in Word. How do I do this? Can anyone
> help me out please?
Ask whomever assigned this task to explain this task.
Essentially a "hard return" signifies the end of a paragraph. It's simply
pressing ENTER. The "soft return" is just a way to start a new line -
h...How to Stop Worksheet_Change event from running during code execution
I'm sorry If I've asked this before but I can't find an answer to it.
I have the following 2 events in a worksheet module....
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
I run some codes, either in UserForms or general procedures that make
changes to this worksheet.
Q. Is there a way to by-pass those two events somehow?
As an example I have a uf that comes up if a cell is selected in that sheet.
So I need those worksheet_Change events to work at that point.
But then, the uf does some stuff like inputing ...VBA code to say Yes or No if any VBA code is present in ActiveWork
Using XL 2003 & 97
Would like hit Ctrl+Shift+V and have an answer either yes or no as to the
presence of Any VBA code in the Active Workbook.
I do know that about the VBA editor/Explorer or to press the Run Macro
button and get a list from various sources .
I would like to stay at the keyboard and process a series of macros
including one to let me know if I even need to evoke the VBA explorer.
There is no bootstrap macro to tell you whether you have macros
or not. If there were there would be no limit to virus writers.
David McRitchie, Microsoft MVP - Excel ...Print, Merged Cells, and VBA
I'm looking for a code that will help me with a print job
for a worksheet. There are a lot of merged cells and a
lot of "IF"s to be used in the VBA for range selection.
Thanks in advance,
...Use VBA to update Access table or Query from Excel
Can I use VBA to update Access table or Query from Excel?
Thanks in advance
> Can I use VBA to update Access table or Query from Excel?
Of course, using ADO or DAO.
Jan Karel Pieterse
Thanks. I think ADO is what I want.
But I am not only want to export from excel to access.
I want to edit some data in access table.
For example, Access has a table "ProductList"
I want to use Excel to call the product by "Pro...Is it possible to run "If Statement" with DSum?
I am currently working with a database that uses the following code:
=DSum("[WeeksService]","Service Record Query","[EmployeeID] = " &
[EmployeeID] & " And [DepartmentName] = Current_Department_Name")
This code works to give me the sum of all Weeks Service where the Department
Name is equal to the Current Department Name and I do want to keep that code.
In addition to that code though, I need to add, I'm guessing, an "IF
Statement" that will provide me with the sum of ALL Weeks Service of ALL
Department Name IF the ...set up landscape & portrait page layouts within a file
When I change the page layout (landscape to portrait) for a page, ALL the
pages in the file take on the change...how do I set up pages so they don't
lose their layout?
You need to rearrange the way you're thinking. Instead of mixing the
orientation, rotate the pages that you want landscape. :-)
MVP Microsoft [Publisher]
"snailkiller" <email@example.com> wrote in message
> When I change the page layout (landscape to portrait) for a page, ALL the
> pages in the...VBA and Scheduled task in Outlook
Hi, how can I:
a) pull the query from somewhere and send it by e-mail automatically. E.g. I
want to take a temperature table from
where 2009/7/10 is the date of yesterday put it into an e-mail and send it
automatically each day at 8 o'clock?
b) if this is not possible, how can I send an e-mail with the attachment
c:\Documents\query20090710.xls each day at 8 o'clock?
my boss wants this automatized, I know how to write the VBA code for Excel,
but don'...Outlook 2003 drops signature settings after update
We have 3 machines out of 20 that drop the settings made to
Signatures/default signature for new messages/default signature for replies
and forwards whenever an Office update (probably a junk mail filter update)
is installed. Any idea what causes this behavior?
...Running pfmigrate multiple times
I ran the pfmigrate already without the /d option afterward. This means
that the PFs still exist on both exch55 and exch2k3.
Using ESM on e2k3 to view exch55 PFs shows nothing but using the Exch55
admin program shows all the PFs still exist on the old exch55.
My questions are
1. Can I run the pfmigrate again and if (yes/no) was is the
coincequences of doing this
2. What is the effect of changing the HOME SERVER attribute on the PFs
in Exch555 using the exch55 adminstrator prog while both exists on E2k3
3. How do I check the HOME SERVER attribute in E2k3?
4. I want to get rid ...Run a program through Outlook . . .
How to run a program from outlook?
As example , i need to run Firefox in outlook.
Thanks & Regards,,
...IE7 won't run from desktop icon or from Start All Programs
Running XP Home with SP3
Recently had to uninstall IE8 due to incompatibilities with an application.
Uninstalled IE8 prior to SP3 which seemed to cause some problems. At this
point, have uninstalled SP3, then reinstalled SP3 and all updates. Have
reinstalled IE7 several times. I can run IE7 using a standard shortcut that
points to the executable. However when I click on the built in desktop icon
it starts to bring up IE7, then immediately shuts down with no error message.
There is no message in the Event Viewer. I get the same results by going to
Start, then All Programs, and th...ComboBox DropDown Size: Design vs Run Time?
I was wondering, what's the reason for specifying the dropdown size of a
combobox at design time?
I'd say it's better to make the size as large as possible to display as
much rows (and columns) without falling of the screen.
Olaf van der Spek wrote:
> I was wondering, what's the reason for specifying the dropdown size of a
> combobox at design time?
> I'd say it's better to make the size as large as possible to display as
> much rows (and columns) without falling of the screen.
Sounds reasonable. Are you having some kind of issue wit...How do I get the text from running off a page (have it skip to th.
I need to be able to have text skip from one cell down to the next row
without it running off a page (hard return)
Not sure what you need here.
If you want text to stop at a certain point in a cell then drop down to next
cell below, just hit ENTER key whenever you choose.
If you want the text on more than one line in a cell, you can hit ALT + ENTER
to create a CR in the cell.
Or just type it all in one cell then choose Wrap Text and widen the column.
Gord Dibben Excel MVP
On Fri, 15 Apr 2005 14:48:03 -0700, "Amy Maestas" <Amy
Maestas@discussions.microsoft.com> wro...vba select field
having a button on a form, is it possible to select only some fields
(all from the same table) of the current record instead of all fields?
I've tried this code:
Forse dipende dei dati nel record.
but it selects ALL fields in the form.
On 10.04.2010 18:01, remigio wrote:
> having a button on a form, is it possible to select only some fields
> (all from the same table) of the current record instead of all fields?
> I've tried this code:
> RunCommand acCmdSelectRecord
&...VLOOKUP in VBA
On the worksheet I can insert in a cell
=VLOOKUP(C5, Hobokee.xls!AcsLow, 2)
and it works perfectly, looks up the value in column 2 of the range named
AcsLow in the same workbook.
But elswhere I want in a macro to lookup the same table and assign the
result to a variable BalAmt.
BalAmt = VLOOKUP(AccNum, Hobokee.xls!AcsLow, 2) does not work.
It gives a function not defined error on Hobokee. If instead of Hobokee I
put Workbooks("Hobokee"), it gives function not defined error for VLOOKUP
which it changes to VLookup.
I have been overVLOOKUP in the Help file and see nothing wrong.
W...Turn pc speaker on/off with vba code
Is this possible?
I found something here on how to do it withVBScript. You can probably modify
it to work in VBA
> Is this possible?
I'll have a go
(I need to improve my web searching skills)
"Barb Reinhardt" wrote:
> I found something here on how to do it withVBScript. You can probably modify
> it to work in VBA
> ...Add a set number to a random entered number
I have to start a vehicle service record and am trying to add the 6000 mile
service interval to the mileage at service number.
A B C D
1 6000 12000
2 12125 18125
3 18200 24200 etc
A is the mileage at service and C is the next service due.I am trying to do
this without having a cell with a line of 6000 in it and the formula eg
=SUM(A1:B1) in the C cell.Is this possable?Hope some one can help.
HTH. Best wishes Harald
"Cyclops" <Cyclops@discussions.microsoft.com> skre...Excel VBA/Macro programming for beginners
I know a bit VB 6.0 programming. Will it help me to write exce
vba/macro(same thing?).can anybody help me by providing some fre
websites where i can have informations/codes for VBA/macro.
Please tell me how could i make a *command Button * in a cell in th
sdebu_2000's Profile: http://www.officehelp.in/member.php?userid=430
View this thread: http://www.officehelp.in/showthread.php?t=118812
Posted from - http://www.officehelp.i
Try David McRitchie's "getting started with mac...Loading a Form from VBA
Hi all, I'd like a module to open and load a form in my Access 2003
database... How can I do this?
Use the OpenForm method. Look in the Help file for details.
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
"Mike" <firstname.lastname@example.org> wrote in message
> Hi all, I'd like a module to open and load a form in my Access 2003
> database... How can I do this?
On Jul 18, 10:58 am, "Douglas J. Steele"
<NOSPAM_djsteele@NOSPAM_canada.com&g...Unable to run forestPrep
I'm trying to install my Exchange 2003 into my Windows 2000 Spk4 network.
I'm having a difficulty running forest prep. I'm getting a message saying
"The component "Microsoft Exchange Forest Preparation" cannot be assigned
the action "ForestPrep" because - Either you do not have permission to
update the Active Directory schema or Active Directory service is currently
P.S. I already specified that the schema may be modified on this domain
Is the account you are running forestprep with a member of the Schema Admins
an...Excel and VBA
I am very interested in learning more about using VBA in office, especially
Excel. Can you post some resources (online, books, etc) that can be used to
help learn about using Visual Basic in office.
Here's a good place to start:
Does that help?
"Bob Sinclair" wrote:
> I am very interested in learning more about using VBA in office, especially
> Excel. Can you post some resources (online, books, etc) that can be used to
> help learn about using Visual Basic in office.
Is there a way to get the name of the current company through VBA in Great
Thanks for all your help.
open GreatPlains. Add the current window, it will add the
Toolbar then add fields choose the company name on the
top left after the user id.
>Is there a way to get the name of the current company
through VBA in Great
>Thanks for all your help.
Thanks. I tried, but I couldn't add company name to the field list. It opens
up the login screen instead.
Any thoughts? Thanks again.