Code won't clear cache?

ljubo_gr

Active Member
Joined
Dec 6, 2014
Messages
251
Office Version
  1. 2013
Platform
  1. Windows
Hi, dear excel vba.. masters!
I have VBA code in Module1,2,3,4
In Module2:
Code:
Private Sub pASTE_SPECIAL()
    On Error GoTo AkoGRESKA
        Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, _
        SkipBlanks:=False, Transpose:=True
AkoGRESKA:
 Exit Sub
 End Sub

Module4:
Code:
Sub Zalijepi_LetveiTemp_Obratno_Click()
    Application.Run "pASTE_SPECIAL"
End Sub
With module4 I call private sub from module2, now I have problem, cache won't clear!?
Before module4 I run code w/o calling, directly from module2, cache than clear.
Reason for Module4: now I have a object called "PASTE VAL.&TRANSPOSE" inside excel sheet.
Thanks in advance! kind people!
 
Last edited:

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Excel2013,

Maybe i need to, because of multiple opened workbooks, include: ThisWorkbook.Module2.run.pASTE_SPECIAL....., I don't know:(
 
Upvote 0
Here is the workbook: https://1drv.ms/x/s!ArVOOVnFRGX4hYdG26Rrp-vnqrDCmA
Now problem is, it won't paste at all!
Note: In workbook go to sheet"LETVEiTEMP", then click on blue C to copy, then go to sheet"ULAZ goriva"List1, then select cell and click object "ZALIJEPI LETVEiTEMP OBRNUTO", it won't paste!!
Any help would be appreciated Thanks!
 
Last edited:
Upvote 0
It is Croatian List1 object ULAZ goriva
Thanks soooo much!

I must go to funeral, husband&wife killed in car acc..:(
 
Last edited:
Upvote 0
Rory, i have unlocked the workbook, sorry Rory, please.
All my life inside that wbook:)
 
Upvote 0
You still haven't said where the ULAZ goriva object is?
 
Upvote 0
Oh, Rory,
Main sheet is "........STANJE" where is blue object shortcut named "ULAZ goriva" which sends to sheet "List1" or Sheet1 :( Anyhow, thank you for your precious time!

P.s. Problem is, go to sheet "Visine" eng.Hights, where is blue C, there you click that C to coppy data to clipboard, then go to sheet "List1"-shortcut object "ULAZ goriva" select H2 and then click upper object called "ZALIJEPI LETVEiTEMP OBRATNO" eng.Paste data from sheet LetveiTemp. There is problem, code won't copy data stored in clipboard.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,275
Messages
6,171,123
Members
452,381
Latest member
Nova88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top