Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8960743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:43:39+00:00 2026-06-15T15:43:39+00:00

I currently have a spreadsheet called DataMap which has a key/value layout. The key

  • 0

I currently have a spreadsheet called “DataMap” which has a key/value layout.
The key is a reference to another spreadsheet and cell, and the value is input by the user.

For example, the key column might have the following individual references:

  • =Sheet1!B25
  • =’Sheet 2′!B25
  • =TableName[TableRowName]

There’s also a button called “Transfer Data” on this page.

When “Transfer Data” is pressed, a macro runs which copies the values into the cell referenced by the key column.

The point of this page is to have a single location where data can be injected from a 3rd party system, with no knowledge of the rest of the excel workbook – barring the fact that there’s a “DataMap” sheet.

Currently, I loop over each of the key/value pair rows in “DataMap” and can inject the value into “=Sheet1!B25” using the following code:

reference = Replace(Sheets("MAPPINGS").Range("A" & row).Formula, "=", "")
refSplit = Split(reference, "!")

Sheets(refSplit(0)).Range(refSplit(1)) = Sheets("MAPPINGS").Range("B" & row).Value

If I use a string replace, I can handle the “=’Sheet 2′!B25” case as well.

I am, however, having significant trouble with the named tables.

Is it possible?
Or, alternatively, does anyone have a suggestion of a better way to specifically handle the copying of a value into a cell referenced by the ‘key’ column (regardless of the format of the reference)?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T15:43:40+00:00Added an answer on June 15, 2026 at 3:43 pm

    See below.

    Dim sht As Worksheet
    Dim address As Range
    
    Set sht = Sheet2
    
    Set address = Range(Replace(sht.Range("A" & 5).Value, "=", vbNullString))
    address.Value = sht.Range("B" & 5).Value
    

    Couple of suggestions:

    1. Change Sheets(“MAPPINGS”) to the internal name of the sheet (found in the VBA window) so if the sheet name is changed in Excel it will not impact your macro.
    2. Do not add the “=” in the cell reference so you dont need the replace syntax.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

currently I have a web which loads excel spreadsheet data into SQL database. When
I have developed several general purpose script functions, for Google Spreadsheet apps. Currently I
I currently have a table of concentrations, which are linked to a table of
I currently have 4 tables. Product, Category, SubCategory, ProductSubCategory. Category has a OneToMany SubCategory
We currently have an Excel spreadsheet containing a large amount of VBA code. The
I have a situation where I currently have a huge spreadsheet that is used
I have a spreadsheet that is currently formatted improperly for a mysql import. The
I have the following code from a legacy app which currently reads from an
I'm trying to write some dates from one excel spreadsheet to another. Currently, I'm
I have an excel spreadsheet that has 2 columns. Something like this |ColA |

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.