2,897 questions with Developer technologies | VB tags

Sort by: Updated
4 answers

Excel VBA: Can my VBA code determine whether Solver is running?

Is there a way to test whether Solver is running? I have a section of VBA code that must be skipped if Solver is running. I'm using MS Office LTSC Professional Plus 2024 (Windows).

Developer technologies | VB
asked 2025-08-09T18:42:52.5233333+00:00
Dave Post 0 Reputation points
answered 2025-08-12T17:03:10.4+00:00
Dave Post 0 Reputation points
3 answers

Validating user's input format is not working

Our requirement is to ask users to create a password with the following format: First letter of firstname+First letter of lastname+2 digits of month+2 digits of day+4 digits of year. For instance, a user with the name of John Doe, born January 1, 1900…

Developer technologies | VB
Developer technologies | ASP.NET | Other
asked 2025-02-18T23:08:28.06+00:00
Simflex 326 Reputation points
commented 2025-08-07T10:33:40.5733333+00:00
Danny Nguyen (WICLOUD CORPORATION) 800 Reputation points Microsoft External Staff
4 answers

Access database set Default Value of a short text field of another short text field

Hi there I have an access database with a short text field called TM Description. I have created another short text field called BrandingDescription that I want to set the Default Value to the text entered in TM Description, ie the two fields would show…

Developer technologies | VB
asked 2025-07-17T01:56:55.08+00:00
Emily Williams 0 Reputation points
commented 2025-08-04T03:52:04.0866667+00:00
Surya Amrutha Vaishnavi Lanka (INFOSYS LIMITED) 245 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

WebRequest Migration to HTTPClient - Needing Feedback to Calling Function

Hello.. I have some code migrating from VS Studio 2013 to VS Studio 2022. Seeing that WebReq has been deprecated. Working to migrate to HTTPClient. Seems that httpclient is async only, I am guessing here... My overall code is written to call a RoboCall…

Developer technologies | VB
asked 2025-07-28T16:12:50.4066667+00:00
Smith, Jeffery Thomas (Jeff) 156 Reputation points
accepted 2025-07-31T14:10:11.58+00:00
Smith, Jeffery Thomas (Jeff) 156 Reputation points
1 answer

VBA oledb open connection became slow

In my VBA project the opening of the OLEDB-connection has become really slow. (In the past it worked fast but since some months it has become slow.) It takes 13 seconds to just open the connection. I have tried this with only this coding in my project…

Developer technologies | VB
asked 2025-06-08T12:49:38.67+00:00
Nik Marien 5 Reputation points
answered 2025-07-30T18:27:03.0166667+00:00
Nik Marien 5 Reputation points
1 answer

Windows Shutdown

I have a small app written in .NET 9, VB. The app does use an xml data file. When shutting down the computer, this app prevents windows from shutting down to allow user to save work. This is despite the fact that NO data saving is required at the time…

Developer technologies | VB
asked 2025-07-11T09:59:41.2133333+00:00
Ford Prefect 20 Reputation points
commented 2025-07-30T15:38:39.87+00:00
Ford Prefect 20 Reputation points
2 answers One of the answers was accepted by the question author.

I'd like to know how VB.NET handles cookies

I maintain an old VB.NET WebForms app. I'm converting it to C# and updating it. However, when it comes to converting how the old app handled browser cookies and how to make the same thing work in a C# Blazor app, I am not sure how to proceed. Here's a…

Developer technologies | VB
asked 2025-06-04T21:29:07.1866667+00:00
Falanga, Rod, DOH 290 Reputation points
accepted 2025-07-17T13:37:36.4133333+00:00
Falanga, Rod, DOH 290 Reputation points
3 answers One of the answers was accepted by the question author.

Update tables linked in Access using VB.NET

I have an Access DB that has linked tables to other access DBs and links to Excel spreadsheets. I would like to scan the links, using vb.net, and validate that they are pointing to the current location of the files. If not I want to change the link…

Microsoft 365 and Office | Access | Development
Developer technologies | VB
asked 2021-10-16T22:11:13.52+00:00
Don Glover 516 Reputation points
commented 2025-07-16T14:38:29.5066667+00:00
Ryan Kristoffer M. Liray 5 Reputation points
3 answers

How to insert two or more different values under one column name based on parent PK?

Greetings experts, We are designing internal ballot system that will be used to elect members into various positions based on election types.

Developer technologies | VB
asked 2025-06-02T16:04:54.6866667+00:00
Simflex 326 Reputation points
commented 2025-07-14T08:54:55.3866667+00:00
Surya Amrutha Vaishnavi Lanka (INFOSYS LIMITED) 245 Reputation points Microsoft External Staff
4 answers

What can I do with white space in the connection string?

I wrote a small application in VB.NET (VS 2022), and it worked well with the connection string without white space. When I put it in the folder with spaces and that is where I have issues with it. How do I solve this issue with the white space? I do…

Developer technologies | VB
asked 2025-07-10T14:15:11.6133333+00:00
Bob Vu 0 Reputation points
commented 2025-07-11T15:15:27.6533333+00:00
Viorel 123.6K Reputation points
3 answers

Value cannot be null. Parameter name: format visual studio 2022

I can create new and work in projects, I can save them and send them to my instructor and they can open them, but whenever I try to open one of my own projects again I get this: at System.String.FormatHelper(IFormatProvider provider, String format,…

Developer technologies | VB
asked 2022-02-27T00:29:55.197+00:00
John Rinaldo 6 Reputation points
commented 2025-06-25T22:14:19.5233333+00:00
Will Howard 0 Reputation points
1 answer

Request for Assistance with App Service Performance – High Time in ManagedPipelineHandler

Experiencing performance issues with an Azure App Service. Analysis revealed 4 slow request(s) where the module consuming the most time is: ManagedPipelineHandler (57.1%) The diagnostic message indicates: "To troubleshoot performance issues or to…

Developer technologies | VB
asked 2025-06-24T02:31:34.4266667+00:00
SK Tang 0 Reputation points
answered 2025-06-24T02:36:41.5266667+00:00
mudinaman143 20 Reputation points
0 answers

VBA: Copy and Paste with a TextBox do not work on Mac

VBA for Word; but there is no coding involved. Create a UserForm. Add a TextBox. Run it. On Windows - you can Copy and Paste to/from the TextBox - vs the Clipboard. On MacOS - you cannot. (at least, it never worked for me - please post if it works for…

Developer technologies | VB
asked 2025-06-17T13:28:21.35+00:00
Eugene Z 20 Reputation points
1 answer One of the answers was accepted by the question author.

Get free/used size of a whole disk

Hi On systems with multiple HDD/SSD disks, I need to get the total size and free or used size of the disk which system drive is in. Using MySearcher As New ManagementObjectSearcher("root\Microsoft\Windows\Storage", "SELECT * FROM…

Developer technologies | VB
asked 2025-06-17T13:37:52.99+00:00
StewartBW 1,870 Reputation points
commented 2025-06-20T02:11:29.9566667+00:00
StewartBW 1,870 Reputation points
0 answers

When creating an Outlook email through VBA in Excel, this now results in error 287; more specifically on getting a string value from .HTMLbody. This problem now appears when we moved to the 365 version. Any thoughts?

The goal is to create an email, using the contents of an Excel sheet. The email should contain the Outlook signature (text and pictures) of the user that is working with the Excel sheet at that time (that can vary). So first the signature is supposed to…

Developer technologies | VB
asked 2025-06-17T17:08:55.49+00:00
Gerard_Logistic 0 Reputation points
0 answers

VBA vs OneDrive: is it possible to use "Copy Link"s to work with files/folders?

VBA Word "Documents.Open" and "Document.SaveAs2" works with local files; but when OneDrive is present - they can also work with network path,…

Developer technologies | VB
asked 2025-06-18T14:10:11.63+00:00
Eugene Z 20 Reputation points
0 answers

VBA: Saving Excel file does not work on Mac, if the destination is in local OneDrive folder

Summary: writing Excel workbook fails, if the destination is under OneDrive, only on Mac, and only if the destination file does not already exist. I have a test routine that reads and writes Excel files (see the end of the post). The source and…

Developer technologies | VB
asked 2025-06-18T14:36:50.9366667+00:00
Eugene Z 20 Reputation points
0 answers

VBA: Word Application.WindowSize event does not work on Mac

I have implemented Word Application.WindowSize event, according to…

Developer technologies | VB
asked 2025-06-18T14:50:18.08+00:00
Eugene Z 20 Reputation points
2 answers

Can we get Visual basic 6.0 download for the product itself ?

We have couple of visual basic 6.0 applications being used in our organization. Is the download of Visual basic 6.0 still available ?

Developer technologies | VB
asked 2025-06-20T12:07:41.7133333+00:00
Madhuri Amrutavakkula 0 Reputation points
answered 2025-06-20T14:23:08.7933333+00:00
Castorix31 90,956 Reputation points
1 answer One of the answers was accepted by the question author.

Get-StorageReliabilityCounter equivalent

Hi, These ps commands work fine, but I'm trying to get the StorageReliabilityCounter values in WinForms, and there's not a single working sample out there, do I need both MSFT_Disk and MSFT_DiskToStorageReliabilityCounter classes? If so, how to connect…

Developer technologies | VB
asked 2025-06-20T15:24:56.1333333+00:00
StewartBW 1,870 Reputation points
commented 2025-06-21T18:54:03.2766667+00:00
StewartBW 1,870 Reputation points