Quantcast
Channel: Word VBA Beginners
Browsing all 106 articles
Browse latest View live

change colour of cell in word table following numerical input

Hi, I have a table in a questionnaire that I want to change the colour of the cell dependent upon the number input to the cell. i.e. entering a 1 will turn the cell red, 2 will turn the cell yellow and...

View Article


Re: Submit Word Form via Email in VBA Macro

"NYSA-HD" <NYSAHD@discussions.microsoft.com> wrote in message news:301B9238-1AEE-4111-916A-0ACCF1ED0354@microsoft.com... >I have a survey form in MS Word using Word Fields. I would like to...

View Article


Runtime Error 6028

I'm adding a UserForm to a Word template. Upon submitting the form, I receive 'Runtime Error 6028 - The range cannot be deleted'. The debugger points to the following script: Private Sub...

View Article

Delete a Row in a Table with Merged cells

Hi! I am a beginner in VBA. I try to delete a row in a table, which table contains some merged cells. Is this possible? One note: the row that I try to delete does not contain merged cells. I tried to...

View Article

Selective Find and Replace in addresses

HI All I have a lot of addresses which I'm trying to tidy via search and replace in VBA. Essentially , where there is a ", " (comma space) I want to replace this with a carriage return. I use ^p to do...

View Article


Why does this -> ActiveDocument.FormFields.count equal zero?

Hi all, I've added numerous listboxes to my document using the "Control Toolbox" Toolbar. Now when I use the following VBA: Dim aDoc As Word.Document Set aDoc = ActiveDocument MsgBox...

View Article

restricting code.

anyway to have a repeating tables function in word? with bookmarks or ranges or something? such that code in one column doesn't affect another

View Article

Changing Sort

When I want to sort my lists (not numbered, but have hierarchy numbers, it will list them as follows: 1.1 1.1.1 1.1.1.1 1.2. 1.2.3.4.5 1.23.235 1.3 1.3. 1.34.24 1.5.1 1.52 Last time I checked, 23 is...

View Article


VERY URGENT!!!

I am extremely new to VBA, but I have been seeing other people's Macros andlearning, but not much. I am having a huge problem. I am working with a Requirements Tool that stores all requirement data...

View Article


Deleting cells with VBA

Hi All, I have already posted this message once, but I can't see it. If it pops up later - apologies. Can any of you gurus tell me how to select and delete a row of cells using VBa if the row is empty....

View Article

Word 2003: Want a macro for accept + next change

Not sure which newsgroup this belongs in. Sorry for the cross-post. I have Office 2003 on my desktop. When I compare two documents in Word, I get the "reviewing" toolbar, which includes buttons for...

View Article

Base de données par copier/coller

Salut à tous. Je suis nouveau en vba et au forum. Mon problème est que je dispose d’un répertoire contenant plus de 600 documents Word (association estudiantine) d’une page chacun et contenant chacun...

View Article

Number to Words (urgent)

Dear Team, Good afternoon, I am using Word 2010, and every day i have to create one letter, and in that letter i have to enter Amount For example ($100.10) and need to write as (USD one hundred dollars...

View Article


[Urgent] Print Repeatedly Character at End of Paragraphs

need help from all of you guys.. i want to print (-) repeatedly at the end of my paragraph until it reach the end of line so it just looks like : Name : John ---------------------------- Birthday :...

View Article

Lost Macro that used to paste graphic as EMF, Convert to inline andresize,...

First of all, I am not a programmer. I created the missing Macro in Word 2003 using the macro recorder. Now it is gone (although my other macros in the same template are still there) and I don't have a...

View Article


Getting rid of hyperlinks

I have received a document which is choc-a-block with linked email addresses which make it hard for me to copy and paste. I don¹t need the links at all. I have created a macro which goes from one field...

View Article

Search, find and highligh multple words in one document

I work with lawyers who often times get contracts send in MSWord for review.. We are trying to find out if there is a way to put a list of words -- example "asbestos, combustibal material, body of...

View Article


Unable to set the desired column width for a table with merged cells

Hi All, I need to copy a table, the values of which are much easier computed in EXCEL; to word. I need an exact replica of the EXCEL table (i.e. I need exactly the same layout, merged cells, row...

View Article

Loops become very slow

Hi, I've copied in (below) a macro i've been working on. The gist of what it does it loops over all the tables in the documents and checks to see if the following paragraph starts with "Table: ", if it...

View Article

macro to save .csv in excel 2007 .xlsx format

Hi everybody, I am putting together a macro that requires saving a .csv spreadsheet to Excel format (.xlsx). The file has always the same structure but the name changes according to the date (it's a...

View Article
Browsing all 106 articles
Browse latest View live