AUTOFILL of related form fields
When using a form I wish to call up the record of an instrument by it's asset
number - which is a unique identifier and, thus, my record key - from a combo
box. Once I scan in this asset number (it's barcoded onto an instrument), I
wish to AUTO FILL into this form the following related fields (already
contained in an "Assets" table) of:
Serial Number, and
If I use the =comboboxname.column(#) it will fill in the fields but for
VIEWING only. I need this data (Model, Serial, Nomenclature) also entered
into another underlying table. How do...selecting cells to produce a pivot table
I have created a macro that inserts a pivot table using some data on sheet1.
I thought that the macro would select the entire list of data to produce the
pivot each time it is run but I notice in the code that it selects an
absolute range and the range will be different each time I run the macro.
How can I change the code to tell Excel to select the populated cells in the
list from A1 to the end? Using v2003 - thanks
PS - I also made a mistake recording the macro and meant for one of the
value fields in the pivot table to perform a sum rather than a count is this
easy to...Macro warning with no macros
I have a workbook that when I try to open it I get the warning tellin
me it contains macros and asking whether I want to Enable or Disabl
them. I put no macros, no VB scripts, nothing at all in the workboo
other than standard Excel formulas and some charts. I developed it i
Excel 2002, SP-2, but have moved it back and forth between tw
computers, the other which has Excel 97. Regardless of whether
Enable or Disable or change the security settings so as not to get th
warning, once the workbook is open even if I go t
Tools-Macro-Macros... it lists no macros.
How can I find out what's cau...Macro
Can anybody tell me how to kick off a macro automatically as file is opened?
Operating System: Mac OS X 10.4 (Tiger)
I'm thinking of buying Mac: Office 2008, but before I do I want to check that I will be able to download Scritpsmart collection of templates without any glitches:
Does anyone know if I can do this?
In article <email@example.comR9absDaxw>,
> Version: 2008
> Operating System: Mac OS X 10.4 (Tiger)
> Processor: intel
> I'm thinking of buying Mac: Of...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...Help with macro/and or formula?
Perhaps this is a silly question, but i just can't figure out how t
format this worksheet. The problem is that a lot of the cells hav
numbers in them with negative signs in the back instead of in the fron
(ie. 23-) and i was wondering if anyone knew of a macro/formula i coul
use to quickly fix this problem for all the cells. I would b
extremely grateful. Thanks
brefed15's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=3557
View this thread: http://www.excelforum.com/showthre...Attached Toolbars Macros
I have a custom tool bar, this tool bar has several items, each item is
pointing to a VBA code. This tool bar is attached to the worksheet.
I've copied this spreadsheet to several computers. After I copied the
spreadsheet I decided to rename the spreadsheet, after I renamed the
spreadsheet the Toolbar Item's macros were still pointing to the old name, I
reasigned each tool bar item to the current spreadsheet, saved the
spreadsheet and everything was working on my computer, but when I re-copied
the new spreadsheet to other computers and I clicked on the Toolbar Item...VBA Command to Look at cell in an If statement
I need to create a macro in VBA that will look at a specific cell (which
contains the result of a lookup formula) in an If statement. Basically it
would look at a certian cell, and If that cell had the word "YES", then it
would execute a seprate macro. If not, just continue on it merry way.
I have tried the following and several variations:
If BO8 = YES Then Call PrintBatch
What the program has to do is look at the last entry made in a specific
column (hence the use of the Lookup formula in the cell) and...Protected sheets and running macros
i have a sheet with a macro ran by a normal button at the top. Howeve
when i protect the worksheet where ever i click on the sheet the macr
Can any one offer any advice on how to stop this?
Message posted from http://www.ExcelForum.com
i am not able to reproduce the problem, hence i may not be able t
provide a panacea for that issue.
here is what i suggest.
i have a sheet that has a macro that is run when a control toolbo
button (that is, not a form button) is clicked.
this sheet is protected based on the user logged in. what i have don
is to protect t...Macro to remove rows?
I receive thousands of rows of data from an extract that comes from a
database. The data extract automatically generates page headers that
need to be removed, and I would love to automate this process.
The headers do have a pattern to them, but I'm not clever enough to
figure out a good way to use that to write a macro.
The first row of the header starts with hyphens
Then there's a variable number of rows of header data to delete
followed by another row of hyphens
Then 2 additional rows that must be deleted.
The nu...Macro Freezes Reading Pane
I have a macro that Sends/Receives Tasks from Project Server into
Outlook Tasks. Everything is working fine, except one weird thing that
happens. I have the Timer set on the macro and it starts as soon as
Outlook starts. The macro gets the tasks from ProjectServer every hour.
As soon as the macro starts running the Reading pane freezes in the
Inbox. If i stop the macro then Reading pane is back to normal. Can
anyone please tell me if there is something I can do in VBA to fix this
Thanks a lot
...Calling on a macro within a macro!
Quick Question - How do you call up a macro within a current macro? I
have one big macro and I need it to jump to several other macros when
it runs! Does it matter where the other macros are stored or is it
better to have them all in one module?
Help appreciated Thnx!
Public Sub Main()
Public Sub One()
MsgBox "Hi from One"
> Does it matter where the other macros are stored or ...Trend Line constants as Excel Cell Values
I want to put the constants of a 2 degree polynomial trend line into Excel
Cells. Are there formula's to do this? Equation is Y = Ax(2) + Bx + C. I want
the value of A,B and C in seperate cells. Can anyone suggest how this can be
Supposing your x-range is in A2:A10, and y-range in B2:B10,
select a 3-column x 1-row area and enter the following formula and confirm
B. R. Ramachandran
> I want to put the constants of a 2 degree polynomial trend line into Excel
&g...shortcut keys to macros
Is it at all possible to assign shortcut keys to macros in Outlook?
...help Unable to record Macro !!!!!!!
I want to record a macro in excel.But as soon as I click
record Macro it says "unable to record" macro. Got no
help in excel help.I do this same thing in word and it's
Please help It's urgent for me !!!1
Have a look here
"ash" <email@example.com> wrote in message
> I want to record a macro in excel.But as soon as I click
> record...NAICS Code
I have a list of NAICS codes formatted as numbers that I would like to
format as hierarchical text.
Does anyone know how to change the cell format so that the "Current
List" becomes the "Desired List"?
Thank you in advance for your help.
It looks like you could preformat that column as text and enter your values as
text. Then you could sort the data as text.
Some versions of excel will ask if you want to sort values that look like
numbers as numbers. You should say no to that prompt.
And just changing t...Macro that password protects a sheet
I am attempting to create a macro that can open a protected sheet, change
something, and then protect it again. I continue to have an issue with the
macro not entering the password. Is this possible to do/fix?
"Ryan" <Ryan@discussions.microsoft.com> wrote in message
> I am attempting to create a macro that can open a protected sheet, change
> something, and then protect it again. I continue to have an iss...Footer Macro?
Months ago I read a Public Sub Macro that read the selection of a drop down
list in a combo box and placed it in the center Footer at the same time it
also placed the date in the right Footer and tme in the left footer. I have
searched most of the regular sites including this one and cannot find it
anywhere --- Can anyone help with my search.
Any help much appreciated
Cheers ---- Mully
...Keyboard Shortcut in Macro
i'v created macro with Keyboard Shortcut Ctrl+b . now i want to change it to
how can i do it .
Tools-->Macro-->Macros. Select (don't open!) your macro, and hit the Options
Hope it helps!
"osaka78" <firstname.lastname@example.org> wrote in message
> Hi all
> i'v created macro with Keyboard Shortcut Ctrl+b . now i want to change it
> how can i do it .
THE MACRO IS NO...Macros have been disabled but there is no macro
when I open a specific doc the info bar at the top says "Macros have been
disabled", but when I hit Alt+F11 I can't find any VB or a module to remove.
Why is it telling me about macros? Other docs don't give me this prompt.
I thought I might have to enable macros to see the code. When I enabled
macro, it said "do you want to save changes to this doc?" it flickered and
came back as if immediately reopened.
I could copy and paste the text into a new doc but I'd be interested to be
able to strip off this problem. The doc is an internal IT ...Run multiple Macros or macros from within other macros ?
I would like to run multiple macros at startup. What code should be used in
the Private Sub Application_Startup command in the ThisOutlookSession area ?
If the names of my macros were below what would the code to look like ?
I have looked at the samples from previous posts and cannot determine how to
make them apply specifically to my needs.
In Excel you can use the Run "Macro1" line and it would run that macro. Run
does not work in Outlook I suppose because I kept getting an error.
Also - What code is needed to execute a macro from w...Startup macro
Is it possible for automatic start of macro in moment when excel file is
I mean when I open excel file specific macro will be immediately automatic
> Is it possible for automatic start of macro in moment when excel file is
> I mean when I open excel file specific macro will be immediately automatic
...apply a formula to multiple cells
a colleague of mine presented me with this problem and i've failed miserably.
He has several hundred cells with a value in each. He wants to apply a
single formula to all cells.
Is there as easy way of adding the formula to each cell? - Without having to
cut and past the formula into each cell.
You don't have to do that. Enter it in the first cell then cut and paste in
one operation to all the others.
"FixitFrog" <FixitFrog@discussions.microsoft.com> wrote in message
news:C9ABA6A0-98DA-4356-B894-5E2FEF82E3A0@microsoft...Macro Question #8
I have a group of several files with a simple macro that automatically
goes to a specific worksheet at the time the file is opened. The code
is as follows:
Private Sub Workbook_Open()
The macro works properly when a single file is opened, but when I try
to open several of the files at the same time I get the following
Run Time Error 1004
Select method of Worksheet Class Failed
All of the files do open, but the macro appears to run on only the
first file selected. All of the other files open ...