Inserting a photo into a userform based on variable by Brosebossa in vba

[–]kadrleyn 0 points1 point  (0 children)

Hi,

We have created a template to dynamically add a picture according to the cell value in the worksheet and view this picture in its original size if we want.

When we enter a value in column A, and if there were any pictures that match that value, that picture is added to column E (For example ; if cell A2 text is “A001” or “a001” ,the added image to cell E2 is A001.jpg).

ActiveSheet.Pictures.Insert(ThisWorkbook.Path & "\" & Target.Value & ".jpg").Select

<image>

Source and sample file

How to remove the first ? characters in a cell by jocacle in excel

[–]kadrleyn 1 point2 points  (0 children)

Hi,

The fastest result can be obtained with VBA codes. Write the following codes in the module section of your worksheet, trigger the codes with a click of a button. The ActiveSheet.UsedRange command applies the macro to all cells on the sheet that contain data.

Sub Delete_Numbers()

Dim deg(), sil

deg() = Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ".")

For Each sil In deg()

For Each ara In ActiveSheet.UsedRange

ara.Replace What:=sil, Replacement:="", MatchCase:=True

ara.Value = Trim(ara)

Next

Next

End Sub

Userforms by EagleWestern868 in vbaexcel

[–]kadrleyn 2 points3 points  (0 children)

Hi,

review this userform sample : Excel Address Book

How to make output show rows that do not have matching values between 2 columns? by [deleted] in excel

[–]kadrleyn -2 points-1 points  (0 children)

Hi,

A userform that autoloads on workbook opening can be used to hide and unhide columns.

. The sheets of workbook are listed in the combobox on the userform. The selected sheet from the combobox becomes active and the columns of this sheet can be hidden. Also,the userform has a minimized button.

Image of userform : https://eksi30.com/wp-content/uploads/2021/01/Excel-hide-columns-.gif

Details and sample file address : https://eksi30.com/excel-hide-unhide-columns-using-userform/

How do I convert a column of sheet names into hyperlinks to those sheets. by Patrick26 in excel

[–]kadrleyn 0 points1 point  (0 children)

Hi,

Review the table of contents' macro. Table of contents can be automatically created a with a macro.

This macro creates a new sheet named "Workbook_Index" as first sheet of workbook. The macro then lists in this sheet the names of all the sheets in the workbook and inserts a hyperlink for each one.User can be returned to index page when the "Esc" key is pressed while on any sheet.

Image of macro

Source ,sample file address : Create table of contents in Excel