Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 04-20-2022, 12:57 AM
lenziwag93 lenziwag93 is offline Help with creating a script with VBA Windows 11 Help with creating a script with VBA Office 2019
Novice
Help with creating a script with VBA
 
Join Date: Apr 2022
Posts: 2
lenziwag93 is on a distinguished road
Default

Thats what i got for bullet point 1:

Code:
Sub CopyRowE() Dim LastRowE As Long Dim LastRowH As Long Dim LastDataRow As Long Dim CopyData As Long  With Tabelle1  LastRowE = .Range("E9999").End(xlUp).Row LastRowH = .Range("H9999").End(xlUp).Row  .Range("E2:E" & LastRowE).Copy .Range("CA1").PasteSpecial .Range("H2:H" & LastRowH).Copy .Range("CB1").PasteSpecial  LastDataRow = .Range("CB999999").End(xlUp).Row .Range("CA1:CB" & LastDataRow).Copy  Sheets.Add  ActiveSheet.Range("A1").PasteSpecial  .Range("CA1:CB" & LastDataRow).ClearContents  Tabelle1.Select .Range("A1").Select  End With End Sub


Any idea for the other bullet points? How can i do the same for a different file?
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with creating a script with VBA Script Directory charlesdh Excel Programming 3 06-12-2018 01:36 PM
Run a script disappeared, now what? ProgramSam Outlook 2 02-19-2018 05:00 AM
Help with creating a script with VBA Outlook VBA Script kcm5153 Outlook 1 04-07-2015 11:41 PM
Bolding in script ksigcajun Word VBA 10 02-23-2015 08:29 AM
Help with VBA script nsyrax Word VBA 1 01-18-2014 03:38 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:16 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft