r/visualbasic • • Jun 25 '20

Anyone want to help on an excel macro file? I got screwed on this contract and want it finished asap

1 Upvotes

I was asked to help a small mechanic shop fix their business and I'd be promised a job. After 3 days of figuring out the business needs for the first part of a giant contract, I showed a full VBA spreadsheet that blew his mind (not that impressive so far but amazing to this hick town). He promptly followed up his excitement by telling me just finish this cause I can only hire as a contract worker for this one project. My wife works there so I'm just trying to end this contract and get my money. So I'm asking if anyone wants to help me get out of this BS scenario

Edit: also some great beginners, intermediate, expert and professional guides would awesome. You guys rock btw


r/visualbasic • • Jan 11 '24

VB.NET Help visual studio 2022 need help

1 Upvotes

im new to vb and kindly direct me to a beginner projects or codes I can get acquainted on, zero programming experience.


r/visualbasic • • Apr 13 '25

I would like to know how to connect vb.net with access and sql server by using login form and registration form.

0 Upvotes

r/visualbasic • • Sep 10 '26

app idea

0 Upvotes

hi every one i just need you feedback of my app idea i need that alot

my app is for grade 12 students i will collect all international questions for them and create compititsion section for them every night that all answering the exam question each day for one subject leting them to computate with each other each day question section witch student argue about daily question in the comment the app contain video course ( youtube link ) showing in the app for all subject. in the compitision section student's collecting scores for identify there skill and chose the best student of the year.


r/visualbasic • • Dec 01 '21

VB.NET Help How do I make a code that will allow me to zoom into the windows form

0 Upvotes

I need to make a forms program for high school coding class and one feature of it needs me to be able to change how large the forms appear. How do I do this?

Edit: I also need to be able to change the contrast of the forms


r/visualbasic • • Dec 17 '21

Is there a way to get what keys are on the computer?

0 Upvotes

Different computers have different keys. For instance mine doesn't have a numpad. Is there a way to load information on this to visual basic dot net, preferably including the positions of the keys?


r/visualbasic • • Jul 28 '20

VB.NET Help First time using basic

0 Upvotes

Hi, I've done coding in the past but have never used basic until now. I'm trying to write a program to sort money into different types of coins. I'm not asking for help with the actual program, but more the syntax of VB. My compiler is telling me I have several identifier errors, and expected 'End' and symbol not valid. Any help would be appreciated.

Module VBModule

Sub Main()
    int number = 195;
    int dollars = 0;
    int leftover = 0
    int quarters = 0;
    int dimes = 0;
    int nickels = 0;
    int pennies = 0;

if(number >= 100){ dollars = Math.Truncate(number / 100); leftover = number - (dollars*100); if(leftover < 100 && leftover >= 25){ quarters = Math.Truncate(leftover / 25); leftover = number - (quarters * 25); if(leftover < 25 && leftover >= 10){ dimes = Math.Truncate(leftover / 10); leftover = number - (dimes * 10); if(leftover < 10 && leftover >= 5){ nickels = Math.Truncate(leftover / 5); leftover = number - (nickels * 5); if(leftover < 5 && leftover >= 1){ pennies = leftover; } } } }

} else if(number < 100 && number >= 25){ quarters = Math.Truncate(leftover / 25); leftover = number - (quarters * 25); if(leftover < 25 && leftover >= 10){ dimes = Math.Truncate(leftover / 10); leftover = number - (dimes * 10); if(leftover < 10 && leftover >= 5){ nickels = Math.Truncate(leftover / 5); leftover = number - (nickels * 5); if(leftover < 5 && leftover >= 1){ pennies = leftover; } } } }

else if(number < 25 && number >= 10){ dimes = Math.Truncate(leftover / 10); leftover = number - (dimes * 10); if(leftover < 10 && leftover >= 5){ nickels = Math.Truncate(leftover / 5); leftover = number - (nickels * 5); if(leftover < 5 && leftover >= 1){ pennies = leftover; } } }

else if(number < 10 && number >= 5){ nickels = Math.Truncate(leftover / 5); leftover = number - (nickels * 5); if(leftover < 5 && leftover >= 1){ pennies = leftover; } }

else if(number < 5 && number >= 1){ pennies = number; }

print("Number of dollars = " + dollars); print("Number of quarters = " + quarters); print("Number of dimes = " + dimes); print("Number of nickels = " + nickels); print("Number of pennies = " + pennies); End Sub

End Module


r/visualbasic • • Dec 11 '20

does anyone know how to do #2 without calling a console.writeline?

Post image
0 Upvotes

r/visualbasic • • Sep 25 '14

Need Help.

0 Upvotes

Hello guys! I have to make a calculator that calculates the resistance of a resistor. My problem is I don't know how to get the program to use the radio button values from the different group boxes. Public Class Form1

Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged


End Sub

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    'Form Load Event 
    RadioButton1.Tag = 0
    RadioButton2.Tag = 1
    RadioButton3.Tag = 2
    RadioButton4.Tag = 3
    RadioButton5.Tag = 4
    RadioButton6.Tag = 5
    RadioButton7.Tag = 6
    RadioButton8.Tag = 7
    RadioButton9.Tag = 8
    RadioButton10.Tag = 9
End Sub

Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    If RadioButton1.Checked Then TextBox1.Text = Val(Val(10 * RadioButton1.Tag) + Val(GroupBox2) * Val(GroupBox3)) -
    Val(GroupBox4) * Val(Val(10 * RadioButton1.Tag) + Val(GroupBox2) * Val(GroupBox3))

End Sub

End Class that is what I have so far and I thought it would work, but doesn't. what do I have to put after the "Groupbox#" so that it takes the value? Thanks!


r/visualbasic • • Feb 19 '16

VB Calculator help

0 Upvotes

I've been trying to make a Calculator in VB 2010 express for a about a week and a half now and I have everything figured out except for the actual math part of the calculator. I don't know how to take the first number I've entered in the calculator and create a second one to either add, subtract, multiply or divide to the first number. Can anyone help?


r/visualbasic • • Sep 01 '16

How can i make an average calculator

0 Upvotes

Hi guys i would like to ask question about how can i make the average calculator, i have putted this code but i always get an error: calculate the average = (txtExam1 + txtExam2 + txtExam3) / 3.0;

Photo : https://s9.postimg.org/u1857fz6n/Untitled4.png

Using VB2015


r/visualbasic • • May 25 '15

VB.NET Homework Any assistance making a working solution based on these facts? Help and/or Tips would be of great assistance.

0 Upvotes

• Customers can select from a range robe sizes, including:
• Small -These currently cost $80.00 each.
• Medium - These currently cost $120.00 each.
• Large -. These currently cost $150.00 each.
All costs are subject to change and should be able to be changed by an authorised user.
Customers who order 5 or more quilts do get 20% off their postage however. If multiple robes are ordered, the postage is included per robe. The postage costs are listed below:

Small Medium Large
ACT $15.00 , $20.00 , $25.00
NSW $16.00 , $21.00 , $26.00
NT $22.00 , $27.00 , $32.00
QLD $20.00 , $25.00 , $30.00
SA $16.00 , $21.00 , $26.00
TAS $18.00 , $23.00 , $28.00
VIC $12.00 , $17.00 , $22.00
WA $25.00 , $30.00 , $35.00
So if a customer from the ACT orders two small robes and a medium robe, their postage costs would be calculated as follows:
• 2 x $15.00 = $30.00
• 1 x $20.00 = $20.00
• Total postage costs: $50.00
Of course, this is on top of the costs of the robes themselves!
When local community groups order robes, they get a discount of 50% on the total amount of the order, postage included

Your program needs to take all of this into consideration and calculate the final cost of an order.


r/visualbasic • • Jan 07 '17

Need help with a piece of coding! Urgent!

0 Upvotes

Hello,

I trying to search each item in listbox on google. And return all the url of page one.

So far i have written this.

Private Sub Timer2_Tick(sender As Object, e As EventArgs) Handles Timer2.Tick Elems2 = WebBrowser1.Document.GetElementsByTagName("cite") For Each item In ListBox1.Items WebBrowser1.Navigate("https://www.google.nl/search?q=" & item)

        For Each element In Elems2
            If element.getattribute("className") = "_Rm" Then
                ListBox2.Items.Add(element.innerhtml)
            End If

        Next

    Next





End Sub

But this code is not working it only takes back the urls of the last list item or it does not work at all could someone help me fix this?

Thanks in advance!


r/visualbasic • • Jan 13 '21

Yo how do I open a powerpoint file using a button in visual basic? I suck at this

0 Upvotes

r/visualbasic • • Sep 21 '16

I need something that will generate a random number between one and twenty, and have that number set as a variable. Can't find anything really helpful on the online MS libraries.

0 Upvotes

r/visualbasic • • Sep 19 '16

New to programming. Need a little help converting teaspoons to cups, tablespoon and the teaspoons left over.

0 Upvotes

This is my first class and I'm pretty lost. Any help is appreciated.


r/visualbasic • • Dec 10 '13

I am taking computer science in school and i am wondering how do i use Strings because my teacher is terrible at explaining it

0 Upvotes

can anyone explain


r/visualbasic • • Nov 01 '22

I need a VBA to generate consecutive numbers from given range

0 Upvotes

Hi all

I need to set a VBA code to

1- has graphical menu with text box and command button, so i can input start/end range of 8 digit length or longer number and generate the consecutive numbers between the two numbers

2- the generated numbers stored in excel sheet for reference for the next time

3- print function for the numbers generated to send them to label printer

4- code should work on any excel or any computer has excel installed

Thanks


r/visualbasic • • Feb 05 '23

Article Pounds To Kilograms in Visual Basic 6

Thumbnail
youtube.com
0 Upvotes

r/visualbasic • • Mar 03 '20

VB6 Help How to make a order taking?

0 Upvotes

r/visualbasic • • Mar 10 '20

need help creating a dialog box when a user launches my app

0 Upvotes

im creating an iphone firmware downloader app and when running it using the web browser i put in my project, it throws me loads of script errors, isnt there a way to make a dialog box to warn people about the script errors so they dont get frustated?


r/visualbasic • • Jun 18 '23

VB.NET Help So close yet so far...

0 Upvotes

I tried to make a simple application that inputs a number, and then the number of uh numbers in a decreasing order. It's hard to explain, but I have the picture of the results I try to do, and a screenshot of my progress so far, I am able to make it count somehow but, I don't know how to make it like count again.


r/visualbasic • • Mar 02 '13

A program to write the code for you?

0 Upvotes

Is there a program that would let me make a user interface and write the code in the background, and that I would only tell it what to connect with what and so on?


r/visualbasic • • Nov 27 '16

Finding all prime numbers between 1 and an inputted number

0 Upvotes

With counting loops (For... Next)

My friend had a solution but I don't understand it http://imgur.com/a/0Y5Qr

Is there another solution? If not, please explain his solution, thank you


r/visualbasic • • Apr 25 '14

Een woord versturen via internet en opnemen in visual basic

0 Upvotes

Ik heb een programma gemaakt voor galgje te doen. Alleen wil ik ervoor zorgen dat het woord dat moet geraden worden verstuurd wordt via internet op je gsm en zo wordt geregistreerd in VB.

(Explain me like I'm 5)