+ Reply to Thread
Results 1 to 2 of 2

Create new column with named dynamic range in VBA

  1. #1
    Registered User
    Join Date
    09-25-2014
    Location
    Perth
    MS-Off Ver
    2010
    Posts
    1

    Create new column with named dynamic range in VBA

    Hi all,
    I have read many posts here in the past and nearly always found an answer but now need some help please.
    I 'm very new to VBA so please bear with me.....I will try and be as concise as I can with my request.
    I am in the process of creating a 12 page userform to store information in worksheets to manage UAV's together with a dashboard.
    I guess MS Access would probably be easier but want to be able to share this in the future with some people that don't use Access.

    I have been trying for some time to work out how to use a userform to add a new column in a worksheet (Batteries) with a named dynamic range, the range name is from a textbox (Aircraft Name) in the userform and will require the spaces removed if the aircraft name has been entered with spaces, the information is to be entered with a command button.

    At the same time I want to add the same Aircraft Name information from the textbox on the userform to the next blank row in another worksheet (Aircraft) with a dynamic range in Column A which already exists (Aircraft List).
    I have figured out how to enter the second part with a new aircraft entered in the next blank row but cannot seem to figure out the add new column with the dynamic range bit.

    Any assistance greatly appreciated.
    Michael.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Create new column with named dynamic range in VBA

    Change textbox1 to the name of your combobox.
    Change the column in the code as well.
    ei
    Columns("E:E")
    &
    "=Sheet1!C5"

    Please Login or Register  to view this content.
    Attach a sample workbook for other questions.

+ 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. [SOLVED] VBA Create Dynamic Named Range
    By hobbiton73 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-27-2013, 09:18 AM
  2. Dynamic named range for a column
    By amartino44 in forum Excel General
    Replies: 10
    Last Post: 08-28-2013, 04:49 PM
  3. Macro to create a Dynamic named range.
    By Hilton1982 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-28-2013, 09:42 AM
  4. [SOLVED] Dynamic Named Range Help - Range Based on Values in Column
    By Filibuster in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-03-2012, 11:13 AM
  5. Create a dynamic range on named cell?
    By garyi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-03-2011, 04:06 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