Aller au contenu
View in the app

A better way to browse. Learn more.

Next

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

problème macro VBA

Featured Replies

Posté(e)

Bonjour,

J'essaye de copier des cellules d'un fichier excel dans un autre (ici de wbk1 à wbk2). Voici le peu de code que j'ai fait pour l'instant:

Sub planning()

Dim Wbk1 As Workbook, Wbk2 As Workbook

semaine = InputBox("Semaine?")

jour = InputBox("jour?")

Nplanning = semaine & jour & "07"

'Si tes classeurs sont fermés

Set Wbk2 = Workbooks.Open(Filename:="P:\blabla\fichier1")

Set Wbk1 = Workbooks.Open(Filename:="G:\blabla\fichier2" & Nplanning)

For i = 1 To 5

For j = 1 To 5

Wbk1.Worksheets(1).Cells(i, j) = Wbk2.Worksheets(1).Cells(i, j)

Next

Next

End Sub

Le problème est que lors de l'éxécution pas à pas, je me rends compte qu'après la ligne Set Wbk2 = Workbooks.Open(Filename:="P:\blabla\fichier1") , excel revient au début. J'ai cherché, mais je ne sais pas pourquoi il fait ça. Vous avez une idée? Merci.

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.