+ Reply to Thread
Results 1 to 3 of 3

VBA to accept pasting current named ranges into defined ranges

  1. #1
    Forum Contributor
    Join Date
    05-16-2013
    Location
    Dallas, Texas
    MS-Off Ver
    O365 with latest Excel
    Posts
    107

    VBA to accept pasting current named ranges into defined ranges

    I have a macro that is copying data from one sheet in one workbook into another workbook. Both of these workbooks contained the same named ranges.

    I am using the following code:
    Please Login or Register  to view this content.
    This works perfectly, but I get the annoying message boxes asking if it's ok to use the destination named references for each of the named ranges I have. I tried recording a macro watching me run through the other macro and clicking the "OK" box every time it popped up, but my recorded macro was totally blank.

    I'm sure there is some syntax I can add on to the end of my code that will tell excel to ignore the named ranges from the EL workbook...right?

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: VBA to accept pasting current named ranges into defined ranges

    See the following thread which answers a similar question: http://www.mrexcel.com/archive/VBA/22414.html

    It involves using:
    Please Login or Register  to view this content.
    Lewis

  3. #3
    Forum Contributor
    Join Date
    05-16-2013
    Location
    Dallas, Texas
    MS-Off Ver
    O365 with latest Excel
    Posts
    107

    Re: VBA to accept pasting current named ranges into defined ranges

    just exactly what i wanted!

    thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Referring to Named Ranges defined with OFFSET()
    By jaskamakkara in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-20-2013, 03:55 AM
  2. [SOLVED] Copy pasting two named ranges
    By Nils88 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2013, 11:32 PM
  3. Copying and pasting named ranges
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-21-2012, 09:16 PM
  4. Replies: 0
    Last Post: 02-11-2010, 08:05 AM
  5. [SOLVED] Reviewing a list of defined named ranges
    By Barb Reinhardt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2006, 01:05 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1