Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 1781 online users. » 0 Member(s) | 1779 Guest(s) Bing, Yandex
|
Latest Threads |
SELECT statement with MS ...
Forum: MS Access SQL Tutorials
Last Post: Qomplainerz
07-27-2023, 03:35 PM
» Replies: 0
» Views: 1,076
|
SELECT statement with the...
Forum: MS Access SQL Tutorials
Last Post: Qomplainerz
07-27-2023, 03:31 PM
» Replies: 0
» Views: 528
|
Creating hyperlinks in HT...
Forum: HTML5 Tutorials
Last Post: Qomplainerz
07-27-2023, 01:23 PM
» Replies: 0
» Views: 821
|
What's new in HTML5?
Forum: HTML5 Tutorials
Last Post: Qomplainerz
07-27-2023, 12:48 PM
» Replies: 0
» Views: 544
|
What is HTML5?
Forum: HTML5 Tutorials
Last Post: Qomplainerz
07-27-2023, 12:43 PM
» Replies: 0
» Views: 512
|
Neck isometric exercises
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:44 AM
» Replies: 0
» Views: 808
|
Shoulder shrug
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:43 AM
» Replies: 0
» Views: 463
|
Neck retraction
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:43 AM
» Replies: 0
» Views: 430
|
Neck flexion and extensio...
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:42 AM
» Replies: 0
» Views: 500
|
Neck rotation
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:42 AM
» Replies: 0
» Views: 472
|
|
|
Formatting cells with VBA |
Posted by: Qomplainerz - 07-27-2023, 06:31 AM - Forum: Excel VBA Tutorials
- No Replies
|
|
Description:
You can format cells using various properties of the Font and Interior objects.
Example:
Sub ExampleFormattingCells()
Range("A1").Font.Bold = True
Range("A1").Interior.Color = RGB(255, 255, 0)
End Sub
|
|
|
Reading data with VBA |
Posted by: Qomplainerz - 07-27-2023, 06:30 AM - Forum: Excel VBA Tutorials
- No Replies
|
|
Description:
You can read data from cells using the Value property.
Example:
Sub ExampleReadingData()
Dim value As Variant
value = Range("A1").Value
MsgBox "The value in cell A1 is: " & value
End Sub
|
|
|
Chart methods in VBA |
Posted by: Qomplainerz - 07-27-2023, 06:29 AM - Forum: Excel VBA Tutorials
- No Replies
|
|
Description:
Charts are objects in Excel, and they have methods like ChartType, SetSourceData, and HasTitle.
Example:
Sub ExampleChartMethods()
'Create a new chart
Dim cht As Chart
Set cht = Sheets("Sheet1").ChartObjects.Add(Left:=100, Width:=375, Top:=75, Height:=225).Chart
'Set the chart type to a column chart
cht.ChartType = xlColumnClustered
'Set the chart data source
cht.SetSourceData Source:=Sheets("Sheet1").Range("A1:B5")
'Add a chart title
cht.HasTitle = True
cht.ChartTitle.Text = "Sales Data"
End Sub
|
|
|
Range methods in VBA |
Posted by: Qomplainerz - 07-27-2023, 06:29 AM - Forum: Excel VBA Tutorials
- No Replies
|
|
Description:
Ranges represent a cell or group of cells in Excel, and they have methods like Value, Font, and Interior.
Example:
Sub ExampleRangeMethods()
'Write data to a cell
Range("A1").Value = "Hello, Excel!"
'Change font color of cell A1 to red
Range("A1").Font.Color = RGB(255, 0, 0)
'Change cell background color to yellow
Range("A1").Interior.Color = RGB(255, 255, 0)
End Sub
|
|
|
Worksheet methods in VBA |
Posted by: Qomplainerz - 07-26-2023, 08:44 PM - Forum: Excel VBA Tutorials
- No Replies
|
|
Description:
Worksheets are objects in Excel, and they have methods like Activate, Select, and Copy.
Example:
Sub ExampleWorksheetMethods()
'Activate a specific worksheet
Worksheets("Sheet1").Activate
'Select a range on the active worksheet
Range("A1").Select
'Copy the entire worksheet
Worksheets("Sheet1").Copy
End Sub
|
|
|
Objects and methods in VBA |
Posted by: Qomplainerz - 07-26-2023, 08:37 PM - Forum: Excel VBA Tutorials
- No Replies
|
|
In VBA, everything is an object, and objects have properties and methods.
Objects are elements of Excel (like worksheets, ranges, charts),
and methods are actions you can perform on these objects.
|
|
|
Do Until loop in VBA |
Posted by: Qomplainerz - 07-26-2023, 08:34 PM - Forum: Excel VBA Tutorials
- No Replies
|
|
Description:
The Do Until loop repeats a block of code until a condition becomes true.
Example:
Sub ExampleDoUntilLoop()
Dim i As Integer
i = 1
Do Until i > 5
MsgBox "Iteration: " & i
i = i + 1
Loop
End Sub
|
|
|
Do While loop in VBA |
Posted by: Qomplainerz - 07-26-2023, 08:33 PM - Forum: Excel VBA Tutorials
- No Replies
|
|
Description:
The Do While loop repeats a block of code as long as a condition is true.
Example:
Sub ExampleDoWhileLoop()
Dim i As Integer
i = 1
Do While i <= 5
MsgBox "Iteration: " & i
i = i + 1
Loop
End Sub
|
|
|
For...Next loop in VBA |
Posted by: Qomplainerz - 07-26-2023, 08:32 PM - Forum: Excel VBA Tutorials
- No Replies
|
|
Description:
The For loop is used to execute a block of code a specified number of times.
Example:
Sub ExampleForLoop()
Dim i As Integer
For i = 1 To 5
MsgBox "Iteration: " & i
Next i
End Sub
|
|
|
|