Post New Thread
Page 1 of 167 1 2 3 11 51 101 ... LastLast
Threads 1 to 40 of 6648

Lounge: Visual Basic for Apps

General and cross-app VBA

  • Forum Tools
  1. Calling forms from within classes

    I have an Access 2007 app which uses lots of VBA. I am trying to improve it by making it more object based but am struggling conceptually to understand how to do something. I am still trying to get...

    Started by njl100‎, 2012-04-24 08:29
    • Replies: 7
    • Views: 236
    2012-05-18, 05:35 Go to last post
  2. Red face Word 2003 - Run Time error when closing document using an on entry event

    I am having issues with what should be a relatively simple macro, but I consistently get a Run Time error 4198 when trying to close a document. The macro works in debug mode, but not in runtime, so...

    Started by maverik‎, 2012-05-14 22:13
    • Replies: 3
    • Views: 135
    2012-05-17, 22:42 Go to last post
  3. GetAddress method

    I'm using the GetAddress method to retrieve Contact info from Outlook (using VBA in Word.) If I work with one Contact at a time, I have no trouble. If I display the dialog box to use To: and CC:...

    Started by richardbarrett‎, 2012-05-16 15:04
    • Replies: 0
    • Views: 44
    2012-05-16, 15:04 Go to last post
  4. shell command trickery

    I have several monitors and I want to execute a shell command to start a program and specify which monitor the program appears. Is this possible?

    Started by doughenator‎, 2012-05-11 08:13
    shell command
    • Replies: 1
    • Views: 104
    2012-05-11, 12:25 Go to last post
  5. Question Convert hyperlink to page-number references redux

    I'm a technical writer who needs to add the page number after a hyperlink. Another help author had posted this question back in 2008 and ended up with a working macro. I used his macro and although...

    Started by MM Sobo‎, 2012-04-26 14:44
    convert, hyperlink page number
    • Replies: 3
    • Views: 368
    2012-05-10, 20:06 Go to last post
  6. Word no longer lets me run my macro

    I'm trying to debug a macro which is stored in my document, and I'm having difficulty with Word's security features. When I try to run the macro from the Macro icon in the Developer menu, I get a...

    Started by jsachs177‎, 2012-05-07 12:32
    • Replies: 2
    • Views: 357
    2012-05-08, 11:27 Go to last post
  7. Trying to gain focus

    First of all, I am relatively new to visual basic. However, I'm trying to develop a countdown program for my friends video game. It's simple with buttons that stay overtop his game therefore he can...

    Started by itzvital‎, 2012-04-29 09:42
    • Replies: 0
    • Views: 115
    2012-04-29, 09:42 Go to last post
  8. sendusingaccount from EXCEL with OUTLOOK

    My first post in this forum. I have been trying to establish exactly how to send an email from an excel application and all seems to work except how to specify the account to use. I have used...

    Started by peterhw‎, 2012-04-29 05:05
    email from excel, email vba, sendusingaccount
    • Replies: 0
    • Views: 91
    2012-04-29, 05:05 Go to last post
  9. vba Error variable not defined New Objects 2007/2010

    Does anyone know why this only runs in ThisDocument class and not a module? Has anyone used these new objects? Many thanks. Set fnd = content.Find Option Explicit ' Word 2010 '...

    Started by jec1‎, 2012-04-24 16:55
    • Replies: 2
    • Views: 239
    2012-04-25, 02:34 Go to last post
  10. Excel 2010 VBA: language to delete "temp.xls" file

    I have a two-part payroll process where employee data is exported from an Access utility to an Excel file, whereupon the user runs an Excel macro of mine to put the data into the format required by...

    Started by axsc‎, 2012-03-22 04:06
    • Replies: 3
    • Views: 766
    2012-04-24, 23:14 Go to last post
  11. Excel 2003 to 2007 VBA range adjustment to determine last used row

    I have the following line of code to determine the last used row on the Data worksheet in Excel 2003: lEND = Worksheets("Data").Range("A65536").End(xlUp).Row Since Excel 2007 and 2010 have over...

    Started by lmo‎, 2012-02-23 13:18
    • Replies: 5
    • Views: 1,838
    2012-04-18, 08:07 Go to last post
  12. SaveAs / Powerpoint

    Our VBA macro wants to offer the user to save a PowerPoint presentation in either PPTX format or PPT (97-2003) format. I'm not easily finding the enum for 97-2003. There's ppSaveAsDefault,...

    Started by richardbarrett‎, 2012-04-13 08:38
    • Replies: 1
    • Views: 112
    2012-04-16, 04:36 Go to last post
  13. Question Word2003 Global Startup Template Menu Items and Toolbars to Word2010?

    Hi All I learnt to programme in Word using Woody's fantastic "Hacker's Guide to Word for Windows" books, and since then have moved and modified through various versions of Word a Global Startup...

    Started by PamW‎, 2012-04-12 13:41
    addins, menu, ribbon, word2003, word2010
    • Replies: 7
    • Views: 274
    2012-04-14, 19:25 Go to last post
  14. Section break trips up letter macro; how do I get around it?

    Below is an old macro we've used for years that adds a second page header to letters with more than one page. It's worked well until we upgraded some users for Word 2003 to Word 2007. Now somehow I...

    Started by ailios‎, 2012-04-11 15:57
    • Replies: 4
    • Views: 375
    2012-04-13, 23:28 Go to last post
  15. Vba / sql

    I need to access a SQL database on my laptop. I understand that SQLExpress is a good (and free) way to do this. I've looked into SQLExpress, and there are many versions. Can anyone recommend which...

    Started by richardbarrett‎, 2012-04-10 08:49
    • Replies: 6
    • Views: 254
    2012-04-11, 11:05 Go to last post
  16. inserting and enclosing bookmark in vb (MSO 2003)

    Hi All, Rebrand time again. I have a macro that is updating a disclaimer in the footer of a letter. After inserting the disclaimer, I want to select the text that has just been entered and...

    Started by violet‎, 2012-04-10 15:36
    • Replies: 1
    • Views: 103
    2012-04-10, 19:11 Go to last post
  17. Solid bullet

    I want to add a solid bullet to a list box. I currently use AddItem ChrW(&H2610) for an empty box, but I can't find the proper hex code for a solid bullet. Can anyone help? Thanks, Richard Barrett

    Started by richardbarrett‎, 2012-03-14 08:36
    • Replies: 1
    • Views: 164
    2012-04-10, 08:39 Go to last post
  18. "False" is "True" problem: Word 2007, getting value from .ini file

    Yikes. I have a perplexing situation. I am running Office 2007 in a Virtual PC (OS is Win XP SP3). I have a template that checks an .ini file for a string value of either "true" or "false" (this...

    Started by kmurdock‎, 2012-03-24 19:25
    2 Pages
    1 2
    • Replies: 17
    • Views: 1,017
    2012-04-07, 22:40 Go to last post
  19. Want nonbreaking space before wdRefField Select

    Hi in Word 2007/10 Want to replace 1 space (whatever it is - white space, non breaking space) before ALL wdREFField in Active Document with non breaking space Char(160). The below macro is called...

    Started by jec1‎, 2012-03-31 21:31
    • Replies: 12
    • Views: 591
    2012-04-05, 02:16 Go to last post
  20. Copy and Rename Sheets Excl 2007

    Hi once again, I hope someone can help. I have a workbook with a sheet named "0001". I wish to copy this sheet "x" times and incremently rename each sheet. For example, copy 4 times and have...

    Started by Raymond‎, 2012-03-20 04:22
    • Replies: 1
    • Views: 189
    2012-03-20, 19:41 Go to last post
  21. Concatenate macro to make whole number and cap letter

    Hello - I need to iterate through a range of cells - B5:P24 and compare them to B30:B48. If B5 matches B30 then any capital letters in columns C to P, row 30 need to be concatenated with the number...

    Started by jha900‎, 2012-03-19 11:29
    • Replies: 0
    • Views: 153
    2012-03-19, 11:29 Go to last post
  22. Best way to save an embedded Word doc?

    Hi all, In the following code for saving a Word object embedded in Excel, you have to first activate the Word object, run it and make it visible. But how do you deactivate the Word object to...

    Started by amakeler‎, 2012-02-29 17:13
    • Replies: 9
    • Views: 601
    2012-03-17, 05:46 Go to last post
  23. Unhappy Updating only page numbers in Word doc

    I'm trying to update just the page numbers in my word document using this macro: Sub UpdatePageNumber() ' ' UpdatePageNumber Macro ' Store cursor position and go to top of document Dim...

    Started by myronr‎, 2012-03-14 15:59
    • Replies: 2
    • Views: 420
    2012-03-15, 14:25 Go to last post
  24. Converting an Excel file (containing ‘irregular’ Worksheets) to a Word doc

    Hi all, I have received a project to write a VBA program to convert an Excel file of specific format to a Word doc file. Before I forge ahead, I want to take the obvious precaution and hear...

    Started by amakeler‎, 2012-03-14 19:27
    • Replies: 0
    • Views: 226
    2012-03-14, 19:27 Go to last post
  25. Pop-up help for form, HelpContextID oddity - Word 2010

    I'm having trouble with pop-up help on a userform. I set a HelpContextID for the form itself, so if someone clicks What's This, then clicks off a control, they will get an overview of what the...

    Started by kmurdock‎, 2012-03-11 22:59
    • Replies: 1
    • Views: 178
    2012-03-14, 17:11 Go to last post
  26. Variables 2010

    Can anyone tell me if variables work differently from 2003 to 2010. I am having problems with 1 issue where I have developed a macro for moving specific pages backwards and forwards. Staff create...

    Started by bonriki‎, 2012-02-16 13:37
    3 Pages
    1 2 3
    • Replies: 31
    • Views: 1,360
    2012-03-07, 19:53 Go to last post
  27. How to insert paragraph before table

    Using Word 2010, I have a table in the primary header. I need to insert a blank paragraph before (above) the table. I'm using the following code: Dim rng As Range Set rng =...

    Started by richardbarrett‎, 2012-02-24 10:47
    • Replies: 8
    • Views: 938
    2012-03-05, 23:06 Go to last post
  28. How to convert Word table to Word document

    Hello, The output of a tool is in the form of a table in word that contains 4 columns. One column contains a set of flags, another contains style names and the third and fourth contain a mixture of...

    Started by marlonf‎, 2012-02-24 13:08
    • Replies: 4
    • Views: 692
    2012-02-27, 15:51 Go to last post
  29. Word 2010: Multiline Userform in VBA not working

    Hi -- I'm really hoping someone can help me. I have a letterhead macro that I created for our office back in Word 97, and its worked fine all this time except now that we are upgrading to Word 2010,...

    Started by maverik‎, 2012-02-23 15:31
    • Replies: 2
    • Views: 319
    2012-02-23, 18:55 Go to last post
  30. Word 2003 macro: Loop & EOF Error 52

    I need to repeat a set of recorded macro commands until the end of an active document is reached, but I encounter "runtime error 52" The coding is: Do While Not EOF(1) Loop But I can't...

    Started by purdyd‎, 2012-02-22 06:24
    • Replies: 8
    • Views: 441
    2012-02-23, 02:49 Go to last post
  31. Trust access to VBA greyed out

    Excel 2010. If I select File > Options > Trust Center > Trust Center Settings... > Macro Settings, I (now) find that everything is greyed out. And the 'Trust access to the VBA project object model'...

    Started by ColinBurrows‎, 2012-02-14 15:03
    • Replies: 1
    • Views: 769
    2012-02-15, 13:59 Go to last post
  32. It takes two?

    Hi All, I found this neat code that will let you use VBA to switch the Tab on the ribbon. The code works great, well almost. If I call it from the Auto_Open() procedure in an Excel file it does...

    Started by RetiredGeek‎, 2012-02-03 15:26
    • Replies: 7
    • Views: 675
    2012-02-06, 08:48 Go to last post
  33. Convert filter

    I create a CSV file to use as a data file. We had no problem merging with this file in Word 2007. In Word 2010 we are seeing the following error: Word cannot start the converter sspdfcg_x64.cvn ...

    Started by richardbarrett‎, 2012-01-10 15:03
    • Replies: 3
    • Views: 534
    2012-02-04, 16:47 Go to last post
  34. File SaveAs with Current Date/Time

    There's already an open thread on this topic; please don't post duplicate threads. Gary

    Started by Gary Frieder‎, 2012-02-04 00:35
    • Replies: 0
    • Views: 307
    2012-02-04, 00:35 Go to last post
  35. MS Word 2003 - need VBA FileName time-stamp help

    Hello... I am macro beginner and digging with this macro since last few days. I would really appreciate any help. The macro is working absolutely fine but the "Filename" with different time...

    Started by Meghan‎, 2012-01-28 11:33
    • Replies: 3
    • Views: 666
    2012-02-03, 13:08 Go to last post
  36. Deleting text with sequential numbers: MS Word 2003

    Hi all, I have some documents that are produced as a result of exporting content from eLearning modules. I need to be able to delete certain content such as repeated wording, graphics etc, most...

    Started by violet‎, 2012-01-31 03:54
    • Replies: 6
    • Views: 677
    2012-01-31, 05:37 Go to last post
  37. How to find parent folder of default location in Word

    Is it possible to get the parent folder of a default file location in Word? For example: sPath = Options.DefaultFilePath(wdStartupPath) Is it possible to use .Parent to get the folder above?...

    Started by richardbarrett‎, 2012-01-27 10:55
    • Replies: 4
    • Views: 763
    2012-01-29, 07:46 Go to last post
  38. Set Word Manage Styles default properties programatically?

    I'm pretty sure there's no way to do this, but has anyone figured out a programmatic way to set the default font and paragraph properties that are set on the Manage Styles tab? This is NOT the...

    Started by jweissmn1‎, 2011-12-02 12:43
    • Replies: 12
    • Views: 1,514
    2012-01-21, 14:56 Go to last post
  39. Ribbon customization in a 2003-compatible .dot?

    I have a customer moving (not soon enough) from Word 2003 to 2010. They would like an add-in that is compatible with both versions of Word, and would greatly prefer not having to do a DLL install on...

    Started by joelfinkle‎, 2012-01-18 16:44
    • Replies: 3
    • Views: 561
    2012-01-21, 14:39 Go to last post
  40. Office 2010 (Access VBA) export to Excel 2003 .xls?

    We have an Access utility which processes timesheet data. One of its valuable features is that it will export a week's worth of data to a spreadsheet in Excel 2003 format, which the clerks enter...

    Started by axsc‎, 2012-01-19 02:40
    • Replies: 2
    • Views: 806
    2012-01-20, 02:27 Go to last post

Post New Thread
Page 1 of 167 1 2 3 11 51 101 ... LastLast

Forum Information and Options

Moderators of this Forum
Users Browsing this Forum

There are currently 113 users browsing this forum. (0 members & 113 guests)

Thread Display Options

Use this control to limit the display of threads to those newer than the specified time frame.

Allows you to choose the data by which the thread list will be sorted.

Order threads in...

Note: when sorting by date, 'descending order' will show the newest results first.

Icon Legend

Contains unread posts
Contains unread posts
Contains no unread posts
Contains no unread posts
More than 30 replies or 1000 views
Hot thread with unread posts
More than 30 replies or 1000 views
Hot thread with no unread posts
Closed Thread
Thread is closed
Thread Contains a Message Written By You
You have posted in this thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts