1,495 questions with Office Visual Basic for Applications tags
Can Excel VBA identify numbers stored as text, and can it change them to numbers automatically?
Excel identifies numbers stored a text, with a green mark and an associated error button If you tick the error button, you can Excel to change the numbers to be stored as numbers Can this happen automatically?
Migrate VB.NET Windows Desktop App to Azure
I have created a VB.NET Windows Form desktop application in Visual Studio 2019. The application accesses an Azure SQL DB for retrieval of data only. I would like to migrate the application to Azure such that it could be accessed by multiple subscribed…
Word 365 - Hide/ Disable Auto Save Toggle button, Comment Menu, Share Manu
Hi, I am working on customizing Word 365 UI using VSTO Add-in and Custom Ribbon / CustomUI.xml approach. I want to hide or disable following elements on Word 365 UI. Auto Save Toggle button, idMso = AutoSaveSwitch Comment Menu on the…
Please help on Pivot Table Refresh online
Hello, I'm having issue with refreshing pivot tables using Excel Online. The pivot tables are built using data model with data source from the tables in existing workbook. When I refresh manually using "Refresh Selected Connection"…
Datestamps in Excel when a cell value changes
I've already looked up adding datestamps in Excel. Not a problem. I already have a table with data in it. I don't want to display the current date if there is already data in the cell. I only want the datestamp to update when the other cell value…
Microsoft Slideshow to create a lottery screen to add macro specified lottery number
As shown in the slides of Microsoft, the scrolling display of lottery numbers can be realized in the specified interface of participating lottery numbers. Now we have a question to ask:
How to Fix Run-Time Error "5852"
I just completed a mail merge using Microsoft Word. But what I want done after the merge is to save each letter to a pdf individually. I copied the following from a tutorial online and I'm getting a Run-Time Error "5852". I am NOT a VBA…
Correspondence Generator with MS Word
The U.S. Navy requires all official correspondence to be within very specific parameters and formatting standards. Is there way to generate a UserForm via Word VBA that could prompt a user to prepopulate an intended letter via the form and have it create…
MS365 Word VBA Selection.Paste Word Table Run-time error: 4605, but not debug
MS 365 Word VBA Macro Copies table at beginning of macro for use later, then changes original table for desired output. Several sub-routines later, it copies the table from the clipboard. Prior to MS365, this worked without an issue. Now, we get…
Can't change Column Width in code in Access datasheet
I thought I've done this before, but it doesn't seem to work now. I'm trying in code to reset the widths of columns in an Access datasheet (based on a query). I can set the .ColumnOrder and the .ColumnHidden properties just fine, but any change I make…
Numbers spell in excel with three decemals
Hi, can anyone help me with excel to spell number like this ? its for a currency BHD 101.123 = one hundred one Bahraini Dinars And One Hundred and Twenty Three Fils Only. The Fils decimals are three from 1-999
How to pass an range directly to a C++ DLL/dylib on Excel for Mac?
Hi, I'm trying to extend Excel using C++ on a Mac. I basically want to pass a range directly to a function written in a C++ dylib. So far I have been able to pass arrays of basic types such as Doubles and Integers successfully. However, looping through a…
How to resolve "MSFLXGRD.OCX" or one of its dependencies not correctly registered a file is missing or invalid issue?
Im trying to run an application developed using VB6. When trying to run the .exe I am getting Run time error code "339" with the "Component "MSFLXGRD.OCX" or one of its dependencies not correctly registered a file is missing or…
Migrate VBA to vb6, vb.net, or c++
I have VBA code heavily integrated with Excel and it also creates shapes that will be put into a Powerpoint slide. I want to be able to create an exe file for distribution. What language is best to convert to VB.Net, VB6, C++ ?
POST using MSXML2.ServerXMLHTTP60 used to work now ERROR
I am using MSXML object to POST data from an Excel worksheet to a REST API. My VBA macro used to work, now MSXML2.ServerXMLHTTP60 returns an MS error "No credentials were available in the client certificate." The POST request, URL, credential…
Word VBA - Unable to import image from SharePoint
This code works on one PC (PC1) but not another PC (PC2). Sub INSERT_IMAGE_SharePoint() Dim strPicName As String strPicName = "http://MYCOMPANY.sharepoint.com/:i:/r/teams/myteam/toolfiles/test.png" …
Sending emails in MS Access with Oauth
Hi I have been sending emails to exchange using CDO for years. This basic authentication is being deprecated but I can find no information about how to implement the recommended alternative OAuth in VBA. Does anyone know if it is possible to do this. …
OCX issue with Windows 11 Pro verses Windows 11 Home
LED.OCX works great on my Windows 11 Home addition in VBA With Office 2016 Access and VB6 It will not work in office or VB6 under Windows 11 Pro What gives???
Programmatically call microft print to pdf and dynamically pass filepath and filename information
I have a set of documents that I would like to save as pdf files and place in different network folders. Is there a way to do this programmatically using vba or C#, etc
What is the solution for date format in the excel VBA form?
Im still new with the excel VBA. When I key in the date in the VBA form using this format (dd/mm/yyyy), it will interpret automatically as mm/dd/yyyy in the worksheet. My computer system settings for the date format is in dd/mm/yyyy and the excel date…