RoboRaz

New Member
Joined
Aug 4, 2017
Messages
8
Hello,

I'm new here and I think this is a fantastic community. I need some help here since I'm very new to excel's developer option.

I would like to know how I could use a command button to address a cell value into a Text box.

I want the user to click on a button and update values in multiple text boxes from different cell values and also update charts along with it so I'd like to know what code will go behind it.

Thanks!
 
Re: Need help with command buttons

Hope you don't mind my ignorance there I went into another direction since I'm a bit short on time :)
 
Upvote 0

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Re: Need help with command buttons

Not sure if your needing more help or just commenting. Looks like you have a grasp on writing code and working with ranges. I'm not use to dealing with charts very much.
 
Upvote 0
Re: Need help with command buttons

Not sure if your needing more help or just commenting. Looks like you have a grasp on writing code and working with ranges. I'm not use to dealing with charts very much.

Sorry mate English is not my first language so I might not make sense but I'll try to make it as clear as possible from my side. I do need help.

I would like to know if there is a way in which I could select my desired column's within a range of columns I have assigned. For example, if I write Range("A1","C1"), it would mean that I am selecting columns A,B,C right? But if I only want to select columns A and C, is there any way I could do that?

Or do I have to use Cell instead of Range?
 
Upvote 0
Re: Need help with command buttons

Here is a example if you want to select the entire columns:

Code:
Sub Select_Me()
Range("A:A,C:C,F:F").Select
End Sub

This will select columns A C and F
 
Upvote 0
Here is a example if you want to select individual cells:

Code:
Sub Select_Me()
Range("A1,C1,F1").Select
End Sub
 
Upvote 0
Here is another example:
Code:
Sub Select_Me()
Range("A1,B45,F75").Value = "Bob"
End Sub
 
Upvote 0

Forum statistics

Threads
1,216,568
Messages
6,131,462
Members
449,652
Latest member
ylsteve

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top