excel - Word VBA: Range.InsertBefore with clipboard content? -


h ey folks,

i in dire need of functionality insert clipboard contents before ms word documents bookmark.

googling issue didn't turn usable, hope can me here.

basically following:

.tables(1).range.copy 

this copies first table of document clipboard.

now able insert data with

.bookmarks("ah_tab").range.paste 

however, not viable because execute vba code several times (like on different days, etc.) , want paste table top.

so need

range.insertbefore (.paste) 

functionality. way kinda build stack of tables behind bookmark, newest 1 @ top.

does know of command able achieve this?

best regards, dazza

try similar logic presented in other question of yours:

with doc      .range( _         .bookmarks("ah_tab").start - 1, _         .bookmarks("ah_tab").start - 1).paste  end 

Comments

Popular posts from this blog

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -