Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have a button in my userform which allow me to select a file. After selecting the file, I unload the userform by the data in the form are not saved... ex: Sub macro() Dim strPath as string UserForm1.Show 'then treatment of the data Msgbox(i) gives nothing... I expected to have number 4. End Sub If I click on Button #3, then Private Sub CommandButton3_Click() ChDrive "V:\ACE" ChDir "V:\ACE" strPath = Application.GetOpenFilename() If strPath = False Then End strPath = CurDir file = Right(strPath, Len(strPath) - InStrRev(strPath, "\")) i = 4 UserForm1.Hide End Sub -- Alex St-Pierre |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Activating userform and filling it with data form row where userform is activate | Excel Programming | |||
Writing data back via a userform | Excel Programming | |||
Change focus from Userform back to Sheet | Excel Programming | |||
Focus back from modeless userform to sheet | Excel Programming | |||
Must be a way to force focus back to sheet instead of UserForm - isn't there? | Excel Programming |