A macro in computer science is a rule or pattern that specifies how a certain input sequence should be mapped to a certain output sequence according to defined rules and procedures. **Consider using [tag:vba] tag instead of this one if the question concerns a Microsoft Office product. This helps ...

learn more… | top users | synonyms (1)

0
votes
1answer
17 views

Macro in Excel to add the date in ISO-8601 format

For some reason, Excel forces me to use my region for footers when I insert the date. However, it also doesn't auto update when the worksheet opens. Without the formatting this is a rather trivial ...
-2
votes
1answer
35 views

How to multiply rows in Excel based on a variable? [on hold]

last week I found a macro solving my problem, but I seem to have lost the code and cannot find it anywhere anymore. My problem is the following: I have table with names and their variables: Peter ...
0
votes
1answer
31 views

Macro to copy distinct values from one Excel sheet to another

I have an Excel workbook that has the following sheets, "Main" and "Count": Now the "Main" sheet has the column B with list of IDs. Is it possible to have a macro on "Count" page to copy all ...
0
votes
0answers
12 views

Auto copy predesigned row to new row

I'm looking to create a function or macro that would allow me to create a new row based off of a initial design when new information is added to the sheet. As an example, see below: Row 1 would ...
-2
votes
1answer
34 views

Excel Macros 2013: Is it possible to create a Macro that, with a shortcut key, toggles a selected value between red and black font colours

I have created a spreadsheet with information regarding students grades and wish to be able to toggle the font colour of selected cells to indicate change in data. I have attempted to use "If", ...
0
votes
0answers
9 views

LIBREOFFICE WRITER - Changing some fontname throught a document

Normally the document use "COMIC SANS MS" font name. In my document I use four special characters ( club (U+2663), diamond (U+2666), heart (U+2665), spade (U+2660) ). These characters should come ...
-1
votes
0answers
36 views

rotate mouse & pen by 90 or 270 degrees

if i connect my digital pen to my windows 8 tablet with a micro usb adapter, the mouse orientation is rotated by 90 degrees in landscape mode, portrait orientation is fine the digital pen is ...
1
vote
0answers
40 views

How to align column values with their matching value in another column?

I have several columns of data that I need to align with a master column. The following is an example of what I hope to achieve, but with a table containing more larger strings and more rows. The ...
0
votes
1answer
32 views

Macro to fill in cells from a column sequentially when I click on a button

I'm having a lot of trouble trying to figure this out. This is my layout: As you can see, I have 2 buttons. What I would like each button to do is: Each time I click YES, it will insert a Y ...
1
vote
1answer
52 views

How can I stop Excel from opening a second blank window when opening a file from Explorer?

When I open an Excel file from Windows Explorer, I always get a second Excel window as well. Annoyingly, when I close it, it doesn't close, but the other window does! This seems to be a common issue: ...
1
vote
1answer
14 views

I have over written my Ctrl+V function with a macro - how do I restore the original back again

I have over written my Ctrl+V function with a macro - how do I restore the original back again. I have lost the paste function of this shortcut key by over writing it with a macro.
0
votes
0answers
34 views

copy and paste according to a order in a column

I want a macro that will fetch data from Series B and Automatically paste it according to the serial of Serial A. ASeries B and Series A data are same but Series B is not ordered. So i'm looking for ...
1
vote
2answers
66 views

Need an Excel Macro to sum a variable length range

I am trying to create a Macro that is able to recognize how many rows have values above it and only sum that range. If you look at the attached image, I need to be able to click in cells B4, B10, and ...
0
votes
0answers
8 views

Access 2010 - Macro to set dropdowns to preset fields

I work with a form in Access daily in which I repeatedly have to type the same words into the same fields. I would like to automate this (those fields auto-fill to predetermined text when I press a ...
1
vote
0answers
30 views

Excel VBA that calls Powershell ActiveDirectory cmdlet, but Module won't load?

I have a powershell script I use to dump user and computer lists to csv files; it works great and I don't want to touch it much. It uses the ActiveDirectory cmdlet, and the Get-ADComputer and ...
0
votes
1answer
49 views

Combine duplicates in Excel based on values from 2 columns, produce the sum and and % from others, remove dups

I have been struggling with my Excel report trying to roll up duplicate rows based on 2 column values. Also need to calculate the sum of the 3rd and 4th column and calculate the percentage. Here is ...
0
votes
0answers
64 views

Excel 2010 shared workbook - image buttons disabled

I have several Excel workbooks which were originally created in a 2007 version. They are shared workbooks, and contain some VBA code, and are protected to prevent users from changing certain content. ...
0
votes
0answers
19 views

when filter takes out all data, macro copies the titles over. Why?

I am using a macro that copies multiple columns into other documents. I use filters to determine which other documents it should be inserted into. When the set of data does not contain data for one ...
0
votes
1answer
26 views

Vim `cpp` Syntax highlighter prematurely ends macros mid-word

FINAL EDIT: I have "manually migrated" this question to the new Vi(m) SE site: http://vi.stackexchange.com/q/2219/1060 My Vim syntax highlighter for ft=cpp is prematurely ending some macros ...
0
votes
1answer
18 views

how to run an powerpoint add-in from the command line

I'm trying to open a powerpoint from the command line and run an add-in, or alternatively add an existing macro to a powerpoint programatically and then run the powerpoint with the macro. I see the ...
3
votes
1answer
29 views

How to set up a Macro/Hotkey to convert or batch convert PDF to word (with OCR)?

I frequently (like 10+ times a day) need to convert pdf's to word. I use the "Save as" feature in Acrobat Pro. Is there any good way to speed up this process, and boil it down to one click? Ideally, a ...
0
votes
1answer
47 views

Is there a way to copy data with a macro/button filter?

I have a worksheet with employee ids on the top and dates on the side. Then I need to put a Y or a N at there name every day I have 96 employees so it's really long. Is there away with a button or ...
-1
votes
0answers
32 views

Excel Macros stopped working?

A user recently updated iTunes and, since they, they are no longer able to run macros in excel - even from the developers tools tab when selecting to execute it does not work. I'm not very familiar ...
1
vote
1answer
56 views

VBA - Populate cell if adjacent cell is not empty

I have created a macro that opens and edits excel workbooks for me. Firstly, it adds a new column A and then changes the title for A1, B1, C1, D1. After this, I want to create some sort of formula ...
0
votes
1answer
19 views

Vim macro: increase last number of a line by 1

I have a csv file whose last column contains either integers, or the character "-". I need a vim macro that does the following: If last element of current row is "-": Turn "-" to "1" Else ...
0
votes
1answer
50 views

Is there a way to record macros to do things I would normally do in Windows explorer? E.g. Open an Excel file read-only? [closed]

Countless times a day, I go into Windows Explorer, shift-right click on an Excel file, Copy as path, then go into Run, type Excel /r (paste), which opens my Excel file as read only. Is there a way to ...
0
votes
0answers
5 views

Access 2010 - macro running

I have a macro running a series of Maketable queries. It runs one query then exports the data to a .csv file, and repeats the process with the next query. My problem is that for each query I have to ...
0
votes
1answer
40 views

Keyboard Hotkey/Macro Software [closed]

Im looking for a simple easy-to-use software, that can do the following for me: When I hold down spacebar, it actually taps it (click down, release, click down, release... etc.) And then stops when I ...
0
votes
1answer
60 views

How do I generate random numbers between a range in cells? [duplicate]

I'm wanting to create a button that generates a string of 10 random numbers into cells, and pulls the range for these random numbers from, for instance, in B1 and B2. Basically, I'm looking to use the ...
-1
votes
1answer
121 views

Excel macro to group rows based on a cell value

I have a hierarchical list of items in an Excel worksheet and want to create a macro to group each row based on a cell value that gives the level of indention. The data looks like this: Index Level ...
0
votes
0answers
48 views

OSX macro to simulate holding down mouse button

I would like to setup a keyboard macro on a Mac OSX that, when triggered by a keyboard command, (say ctrl+m), simulates the left mouse-click button being HELD DOWN. When I hit the combination again, ...
1
vote
0answers
17 views

How to replace fonts of some characters as typing in Microsoft Word 2013

I want to replace fonts of digits and some other characters automatically as I type in Microsoft Word 2013 (something like word Auto-correct option). How can I do this by Macros?
1
vote
1answer
54 views

Notepad++ macro for changing a certain part of a string

I want to define a Notepad++ macro that takes any string that contains "foo", and creates its new versions only changing the foo to "bar1", "bar2" etc. so if my file contains abc_foo_def when I ...
0
votes
1answer
21 views

Include in user defined macro fails

I'm trying to use gpp (Generic Preprocessor) to add some additional information before and after an #include. The code is as follows: \define{\code{filename}}{PRE \include{\filename} POST} ==> ...
-1
votes
1answer
47 views

How can a macro be created to insert a text box pre-populated with text in Word 2010?

I am attempting to create a Macro to insert a textbox populated with predetermined text when a shortcut key is selected. I am able to record a Macro to generate the text but I am unable to get it to ...
1
vote
2answers
73 views

Chart macro displaying incorrect labels from non-sequential visible rows on filtered worksheet

This macro displays text labels from the source worksheet when double-clicking a dot on a scatterplot chart. The chart is updated when the source worksheet is filtered on any of several columns. The ...
0
votes
0answers
46 views

Update to: Macro to merge cells in a column if the same rows are merged in a different column

I have a large (over 10k rows) spreadsheet with text data I want to concatenate from multiple rows into a single row. The text data corresponds to a date that is in a merged cell in a neighboring ...
0
votes
1answer
52 views

Excel worksheets not seeing their VB code

The form buttons and controls on all my worksheets suddenly stopped working. The behavior is like what you see before you respond to the security prompt-- "enable macros?", that is, when you ...
0
votes
0answers
30 views

My macro's print cell formulas instead of spreadsheet

Excel 2013: I wrote a macro to print 2 copies of a selected portion of my spreadsheet. When I activated the macro, it randomly printed out my cell formulas instead of the sheet. Tyson: here is the ...
1
vote
2answers
67 views

How can I make a Msgbox pop up over other application?

I have an Excel macro that deals with thousands of lines in several tables and do some copy/paste/analyze/combine... operations. it takes almost 10minutes to run it fully. I added a MsgBox "Job Done" ...
2
votes
2answers
350 views

Add button to copy Excel rows

I want to add a button on a row in a spreadsheet that copies the contents from one cell to another if and when I click the button. I already have found the code to do this, however, I want to be able ...
-2
votes
2answers
394 views

highlighting duplicate rows in excel by VBA macro

I have a matrix which includes different/same values in first column, and different values in first row. I would like to compare all rows and highlight duplicate rows. For each row, it should check ...
2
votes
1answer
165 views

Application and Object Defined Runtime Error 1004 - using for loops to populate Cells(x, y)

I'm using the below code to try and find the intersect of Var1 and Var2, and populate the value into my userform that I'm running. I have no problem finding the intersect, but every time I try and ...
2
votes
1answer
82 views

Word macro to change page color

I am attempting to create a Word macro (Microsoft Word Professional 10) to change the page background color. I began by recording the keystrokes - this is the recorded macro: --- Sub WritingLayout() ...
1
vote
1answer
60 views

Assistance with Excel macros

My company uses Excel to track inspections and maintenance of portable fire extinguishers and I'm trying to add some functionality to it but don't have the first clue about how to do it. I'll do my ...
0
votes
1answer
128 views

Copy Full worksheet including multiple defined range names using macro or VBA

I've been trying to build a workbook for my company to use to track sales. The problem I'm running into is that I want each user to have their own workbook saved on their local computer for their ...
0
votes
0answers
20 views

Plug-in command in Notepad++ Macro

I'd like to create a Notepad++ Macro executing the following commands: 1) Plugins -> Compare -> Compare. 2) View -> Word Wrap. Is that possible? Is there another workaround for the ...
2
votes
1answer
164 views

Outlook macro to remove text and insert signature

(Note: I've never messed with VBA before; sorry for probably terrible code!) I'm trying to make a macro that first removes paragraphs containing specific terms (hardcoded into the macro), then sets ...
1
vote
1answer
666 views

How to use Excel 2010 VBA to set series line color, marker fill, and marker line color

I am trying to write an Excel 2010 VBA subroutine to format charts according to a predefined (i.e., defined by me) standard. The particular attributes that I want to be able to set are merely the ...
0
votes
0answers
14 views

Quicksilver - Keyboard macro to select all text to right of cursor

At one point, I had this set up on another machine, but I don't have that mac anymore. I would like a global override to have cmd+shift+right arrow select all text to the right of the cursor on the ...