• Home
    • Payments
  • Tools
    • Color Chart
  • Software
    • Windows tricks
      • Windows 11 Speed Up Tricks
      • Windows Command Prompt CMD
    • Android Phone
      • Android – Dangerous Settings to Turn Off
    • Projects
      • Copy Files
      • Php Autoscript
      • Web Tools
  • Notes
    • How to Code
    • System Tips
  • News
    • Comparing SSD to HDD

How to Code

ACCESS 2022 | Browsers | Css | Htacess | Html | Html5 | Javascript | Microsoft Excel | Mysql | Mysql Dumps | Php | Vb.net | VBscript | Windows <=8 | Windows >=10 | WP | WP Plugin | WP Themes | _Misc Software |

ABCDEFGHIJKLMNOPQRSTUVWXYZ
ON
PRT
OFF

<- Look Inside Data
Conditions:
Order:
14 Language Operation Title
Keywords
Application
Code Languageid
Show Html
Show Iframe
Make Public
Viewed
Viewed Date
Microsoft Excel Archive Module 3
vba module
Crop Production
Microsoft Excel



0
06/04/2026
Microsoft Excel Clipboard Text Import Wizard
csv delimited special formatting
Microsoft Excel



1091
05/05/2026
Microsoft Excel Customizing Lock The Top Row / Header When Scrolling In Excel & Google Sheets
freeze lock
Headers
excel freeze panes example
Freeze Top Row
In a large worksheet with headings, you might want to make sure that the top row repeats when scrolling, so you can always see it.
In the Ribbon, select View > Freeze Panes.
excel freeze panes ribbon
Select Freeze Top Row.
As you scroll down in your worksheet, the top row remains visible regardless of how far you scroll.
excel freeze panes row68
To remove the freeze, select Unfreeze Panes from the Freeze Panes menu.
excel freeze panes unfreeze
Freeze Panes

You can also freeze more than one row at a time.

  1. Position your cursor in the row below the rows you wish to freeze.
  2. In the Ribbon, select View > Freeze Panes > Freeze Panes.
    excel freeze rows multiple rows


The worksheet freezes Rows 1 to 3. If you scroll down, these rows remain in view.
excel freeze panes multiple rows example
To remove the pane freeze, select Unfreeze Panes from the Freeze Panes menu.
Try our AI Formula Generator
Ex. Sum all values in Column B where Column A equal Q1
Generate



Freeze Top Row in Google Sheets
The process is similar in Google Sheets
In the Menu, click View > Freeze > 1 row.
excel freeze panes google sheets menu
As you scroll down, the top row remains in place.

Microsoft Excel



3
05/18/2026
Microsoft Excel Customizing Adding A Color To Alternate Rows
color alternate rows
Filter List
Adding a color to alternate rows or columns (often called color banding) can make the data in your worksheet easier to scan. To format alternate rows or columns, you can quickly apply a preset table format. By using this method, alternate row or column shading is automatically applied when you add rows and columns.

Table with color applied to alternate rows

Here's how:

Select the range of cells that you want to format.

Go to Home > Format as Table.

office 365 asks for cell range. Remove "I have headers" checkmark. You can uncheck the headers box and it will remove the headers it creates. Delete the cells and move the cells up

Pick a table style that has alternate row shading.

To change the shading from rows to columns, select the table, under Table Design, and then uncheck the Banded Rows box and check the Banded Columns box.
Microsoft Excel



2
05/05/2026
Microsoft Excel Customizing Creating Ranges In Excel
range
Crops
Quick Methods to Name Ranges
Method 1: Using the Name Box (Fastest)

  1. Select the cells or range you want to name.
  2. Click into the Name Box (the empty box just to the left of the formula bar).
  3. Type a name (remember: no spaces or special characters are allowed; use underscores instead of spaces, like Total_Sales).
  4. Press Enter to save the name.
Microsoft Excel



0
05/18/2026
Microsoft Excel Form Button To Go To A Certain Sheet
button sheet delete range
Steps to Create a Macro Button

Show Developer Tab: If not visible, right-click any tab on the ribbon, select Customize the Ribbon, and check the Developer box.
Insert Button: Go to the Developer tab > Insert > Click the first icon under Form Controls (Button).
Draw Button: Click and drag on your worksheet to create the button.
Assign Macro: The "Assign Macro" window will automatically appear; choose the macro you want to run and click OK.
Edit Text: Right-click the button, select Edit Text, and rename it to represent its action (e.g., "Run Report").


Solution 1
Alternately, if you are using a Macro Enabled workbook:

Add any control at all from the Developer -> Insert (Probably a button)

When it asks what Macro to assign, choose New. For the code for the generated module enter something like:

Thisworkbook.Sheets("Sheet Name").Activate



1. Clear Only Values (Keep Formatting)
The Range.ClearContents method is the most common way to empty cells while preserving their background colors, borders, and fonts

Sub ClearValuesOnly()
' Clears only the data in cells A1 to C10
Range("A1:C10").ClearContents
End Sub


Microsoft Excel



4
05/05/2026
Microsoft Excel Formatting Show Developer Tab In Ribbon In Excel 2010 And Later Versions
Developer macro button
Microsoft Excel



4
05/05/2026
Microsoft Excel Formatting Using Look Up Tables
xlookup
Crop Production
look up units
=IF(tank_sizeB<51,XLOOKUP(R3,convertA,convertG),IF(tank_sizeB<101,XLOOKUP(R3,convertA,convertE),XLOOKUP(R3,convertA,convertC)))

look up multiplier
=IF(tank_sizeB<51,XLOOKUP(I4,convertA,convertF),IF(tank_sizeB<101,XLOOKUP(I4,convertA,convertD),XLOOKUP(I4,convertA,convertB)))

=IF(tank_sizeB<51,XLOOKUP(R3, convertA,convertF),"")
=IF(tank_sizeB<51,XLOOKUP(R3,convertA,convertG),"")

A B C D E F G
Units convert units2 convert2 units3 convert3 units4
oz 128 gal 32 qt 1.00 oz
pt 8 gal 2 qt 1.00 pt
qt 4 gal 1 qt 1.00 qt
gal 1 gal 0.25 qt 1.00 gal
ozd 16 lbs 16 lbs 1.00 ozd
lbs 1 lbs 1 lbs 1.00 lbs_
feet 1 ft1 1 ft2 1.00 feet
zz 1 zz 1 zz 1 zz
Microsoft Excel



0
05/20/2026
Microsoft Excel Formatting Cleaning Table Row Cells Using Vba
clean clear cells table
Crop Production Xls
Sub ClearRowBasedOnValue()
Dim tbl As ListObject
Dim i As Long

' Set the table object (Replace "Table1" with your actual table name)
Set tbl = ActiveSheet.ListObjects("Table1")

' Loop through the rows from bottom to top
For i = tbl.ListRows.Count To 1 Step -1
' Check if the cell in a specific column (e.g., "Status") matches your criteria
If tbl.ListRows(i).Range(1, tbl.ListColumns("Status").Index).Value = "Clear" Then

' Clear specific cells in that row by column name
tbl.ListRows(i).Range(1, tbl.ListColumns("Data1").Index).ClearContents
tbl.ListRows(i).Range(1, tbl.ListColumns("Data2").Index).ClearContents

' Alternatively, clear a range of columns in that row
' tbl.ListRows(i).Range.ClearContents
End If
Next i
End Sub



Sub ClearRowConstantsByFilter()
Dim tbl As ListObject
Dim row As Range
Dim filterCriteria As String

' Set your table name
Set tbl = ActiveSheet.ListObjects("Table1")

' Define what value you are looking for to trigger the clear
filterCriteria = "DeleteMe"

' Loop through each row in the table's data area
For Each row In tbl.ListObject.DataBodyRange.Rows
' "Filter" check: Only act if the first column matches our criteria
If row.Cells(1, 1).Value = filterCriteria Then
On Error Resume Next ' Avoid error if no constants exist in the row
' Clear everything in the row EXCEPT formulas
row.SpecialCells(xlCellTypeConstants).ClearContents
On Error GoTo 0
End If
Next row
End Sub
Microsoft Excel



0
05/21/2026
Microsoft Excel Function Updating Multiple Cells
Multiple sheets range
Microsoft Excel



4
05/05/2026
Microsoft Excel Function VBA Subroutines
vba clipboard ranges
Crop Product
Sub InputBoxWithClipboard()
Dim MyData As Object
Dim ClipText As String
Dim UserInput As String

' 1. Create DataObject to access the clipboard
Set MyData = CreateObject("New:{1C3B4210-F441-11CE-B9EA-00AA006B1A69}")

' 2. Retrieve text from clipboard
On Error Resume Next
MyData.GetFromClipboard

' Check if format 1 (Text) exists
If myDatat.GetFormat(1) Then
MsgBox "The clipboard contains text: " & myData.GetText
Else
MsgBox "The clipboard does NOT contain text (it might be empty or an image)."
End If

ClipText = MyData.GetText
On Error GoTo 0

' 3. Display Input Box, preloaded with the clipboard text (as the 3rd argument)
UserInput = InputBox(Prompt:="Edit the text below:", _
Title:="Preloaded Input Box", _
Default:=ClipText)

' 4. Check if user clicked Cancel or left it blank
If UserInput <> "" Then
MsgBox "You entered/submitted: " & UserInput
' Range("A1").Value = UserInput ' Optional: output to a specific cell
End If
End Sub


Sub VerifyClipboardText()
Dim myDataObject As New MSForms.DataObject

' Load the clipboard data into the object
myDataObject.GetFromClipboard

' Check if format 1 (Text) exists
If myDataObject.GetFormat(1) Then
MsgBox "The clipboard contains text: " & myDataObject.GetText
Else
MsgBox "The clipboard does NOT contain text (it might be empty or an image)."
End If
End Sub


Sub ListRangesInActiveSheet()
Dim nm As Name
Dim targetSheet As Worksheet

' Set the sheet you want to look at
Set targetSheet = ActiveSheet

Debug.Print "--- Named Ranges in " & targetSheet.Name & " ---"

' Loop through all names in the workbook
For Each nm In ActiveWorkbook.Names
On Error Resume Next
' Check if the named range points to the target sheet
If nm.RefersToRange.Worksheet.Name = targetSheet.Name Then
Debug.Print "Name: " & nm.Name & " | Address: " & nm.RefersToRange.Address
End If
On Error GoTo 0
Next nm
End Sub
Microsoft Excel



2
06/04/2026
Microsoft Excel Function Vba Print Area
set print area
Crop Production
Sub SetMultiplePrintAreas()
ActiveSheet.PageSetup.PrintArea = ""
' Separate multiple ranges with a comma inside the string
ActiveSheet.PageSetup.PrintArea = "A1:C10,E1:G10,I1:K10"
End Sub

Sub ClearPrintArea()
ActiveSheet.PageSetup.PrintArea = ""
end sub


Sub ClearAllPrintAreas()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.PageSetup.PrintArea = ""
Next ws
End Sub
Microsoft Excel



0
05/29/2026
Microsoft Excel Language IF Usage In Excel
if( AND
Microsoft Excel



4
05/05/2026
Microsoft Excel Pdf Printing Group Of Sheets
create pdf worksheet groups excel
When you print a Microsoft Excel workbook to the Adobe PDF printer or the Acrobat Distiller printer, and the Print Entire Workbook option is selected in the Print dialog box, more than one PDF file is created (for example, Workbook 1, Workbook 2, and Workbook 3).

Solutions

Do one or more of the following:

Make sure that the print quality setting is the same for all of the worksheets in the workbook.

1. In Excel, hold down the Ctrl key (Windows) or the Shift key (Mac OS), and select all of the sheets in the Excel workbook.

2. Choose File > Page Setup > Page > Print Quality, and select a print quality setting. Adobe Technical Support recommends that you select 600 dpi, which is the default setting for the Adobe PDF and Acrobat Distiller printers.

I selected active sheets and pdf worked. Right click a tab to Ungroup the sheets.

Print the workbook to a PostScript file, and then use Acrobat Distiller to convert the PostScript file to a PDF file.

Print the workbook to a PostScript file using the Adobe PostScript printer driver (AdobePS), then use Acrobat Distiller to convert the PostScript file to a PDF file. Adobe Technical Support has achieved more consistent results using Acrobat Distiller when converting an Excel workbook to PDF.

Select Print Entire Workbook in the Print dialog box in Excel.

Select all of the sheets in the Excel workbook, then select the Print Entire Workbook option in the Print dialog box. To select multiple sheets, hold down the Control key (Windows) or the Shift key (Mac OS).
Microsoft Excel



1529
05/05/2026

Software Web Design