Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[$ Bonus] For Each Shortcut Press Copy Column To The Right

Okay so below you can find a screenshot and the code I have.

Basically, I have two workbooks
- What I have is workbook where I have macro with a shortcut (CTRL-SHIFT-M) this macro needs to open second workbook (data.xlsm) select and copy the first column, 01/15 (as you can see below), then I will need to do something manually with the copied content, and after I press the shortcut again, it will move onto another column -> to the right and again select and copy that column, and repeat.

[Image: gXErc8K.png]

Code
Sub Copy_From_Another_Workbook()

'

' Copy_From_Another_Workbook Macro

'

' Keyboard Shortcut: Ctrl+Shift+M

'

    Dim radky As Range
    Set radky = Range("I04:I409")

    souborData = "C:\Users\cza19785\Desktop\Data.xlsm"
    souborReport = "C:\Users\cza19785\Desktop\konsolidovaný report_VBA.xlsm"

 
    Workbooks.Open (souborData)
    Set souborData = ActiveWorkbook
    radky.Select.Copy

End Sub

What I have is this, I only select the column in the second workbook.

Somebody who can help me out I'll send some $ onto your paypal, btc, shib, whatever. Thanks.
try Range("I04:I409" & Target.Row).Copy in Worksheet_SelectionChange
[Image: bitcoin.png] Be Nice For Once 15hVUVz7xA4kazHdk2BuErENGCskVwjYXP
(Feb 10, 2022 09:31 AM)HFDone Wrote:  try Range("I04:I409" & Target.Row).Copy in Worksheet_SelectionChange

This didnt work I need to copy a next column to the right everytime I press the shortcut. Thanks though.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by HackooJun 19, 2022 11:05 AM 0 212 Jun 19, 2022 11:05 AM
Last Post: Hackoo
[Shell] by HackooJun 9, 2020 05:38 PM 0 138 Jun 9, 2020 05:38 PM
Last Post: Hackoo
[Python] by ICUPApr 3, 2020 08:21 AM 3 180 Apr 3, 2020 08:21 AM
Last Post: lockhead