Hello guys!
I need to make a database viewer on excel, a simple form to show some infos in one place.
i`m new with VBA, so i`m trying to do by myself, but every time i got stuck with the code.
here`s the thing, there`s more than 1 sheet and i need to work with it dynamically and with a image.
The base layout
Can someone help me with the code? Or at least show me the path to learn this, please!
Here`s a piece of code that i built, i don`t know if is really usable to do this.
Thanks!!
I need to make a database viewer on excel, a simple form to show some infos in one place.
i`m new with VBA, so i`m trying to do by myself, but every time i got stuck with the code.
here`s the thing, there`s more than 1 sheet and i need to work with it dynamically and with a image.
The base layout
Can someone help me with the code? Or at least show me the path to learn this, please!
Here`s a piece of code that i built, i don`t know if is really usable to do this.
VBA Code:
Private Sub UserForm_Initialize()
Dim sh As Worksheet
On Error Resume Next
If cmbSheets.ListCount <> ThisWorkbook.Sheets.Count Then
cmbSheets.Clear
For Each sh In ThisWorkbook.Sheets
If sh.Visible Then
cmbSheets.AddItem xSheet.Name
End If
Next sh
sh.Activate
End If
End Sub
Thanks!!