Consulting

Results 1 to 9 of 9

Thread: Paste data from word table into excel sheet while skipping hidden columns

  1. #1

    Paste data from word table into excel sheet while skipping hidden columns

    Hi all,I'm new to VBA and would like to know if the following is possible and if so how I would be able to do it...I'm copying data from word into excel tables and I have got the following problem:I want to paste the data in columns b, d, e and f while column c is hidden. If I try to paste it now the data is also pasted into the hidden column. I would like to paste the data in such a way that it would just skip the hidden column.Can anybody help?

  2. #2
    Knowledge Base Approver VBAX Guru GTO's Avatar
    Joined
    Sep 2008
    Posts
    3,368
    Location
    Not thought through, but I am very sure the answer is "Yes". I would suggest posting your question in the WORD forum at this site. In essence, you want to grab the first column of values (in the WORD table) and the remaining three columns separately.

    I would include a link to this thread in the thread started in the WORD forum.

    Hope that helps,

    Mark

  3. #3
    Hi Mark,Thanks for your reply! But I am trying to create a column in Excel which is not only hidden but will automatically be skipped if one tries to paste anything in it. So I am actually trying to make a (temporarily) non existent column so to speak.Data does not originate from one word table and possibly not even from one word file. Thus it would be easier to have one rule for a column in the excel file.Greets,Pepijn
    Last edited by PJ_Aghina; 01-02-2014 at 09:08 AM.

  4. #4
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Is there an absolute rule that it is Column "C" that must be hidden?

    Why?

    I ask because there are probably many different ways to accomplish what you ultimately want.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  5. #5
    There is no absolute rule, i thought it would be the easiest way. Though if you know of a way to just simply skip column C when pasting that would suffice as well. Many thanks if you have a solution for me!

  6. #6
    Knowledge Base Approver VBAX Wizard
    Joined
    Apr 2012
    Posts
    5,646
    Did you check your PM's ?

    So what's the use of that 'hidden' column ?
    Why wouldn't you put a 'hidden' column just after the last column of the pasted table ?

  7. #7
    The sheet contains Hyperlinked article name in column c. The cells for this column contain a formula of a concatenate of Column G and D. This formula must not be pasted over. Column D wherein the article name is pasted will be hidden when all data is pasted into the document. Furthermore all the data are pasted into 40 tables which do not allow for cutting and pasting entire columns. What do you mean with PM's? How do I attach the sheet to my reply?

  8. #8
    Knowledge Base Approver VBAX Wizard
    Joined
    Apr 2012
    Posts
    5,646
    First have a look around in this forum : see 'notifications'.
    There's even a FAQ section.

  9. #9
    Thanks for the tips! I could still not find how to skip a column when pasting though. Thanks to your help the search is now refined to just skipping a column when pasting. Will i need to use VBA for this or will a special format of cells suffice?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •