+ Reply to Thread
Results 1 to 5 of 5

VBA store references with arrays

  1. #1
    Registered User
    Join Date
    09-28-2012
    Location
    brussels
    MS-Off Ver
    Excel 2007
    Posts
    3

    VBA store references with arrays

    Hello everyone,

    I am a beginner with VBA and this is my first post here, so I want to start off by saying thanks for this great source.

    Here is my issue:

    - In my "output" workbook I have 2 sheets: "database" and "report"
    - In the first column of database I have my reference numbers, and other columns contain some data-info.
    - In the report sheet, again in the first column I have my reference number and according to these ref numbers I have some formulas in other cells.
    - Here comes the question, How can I pass some data from two cells in my database to one cell in my report sheet by using the reference numbers? The formats of the texts(font color, size) in the database sheet should be kept when transferring to report sheet.

    I hope I could have explained well and you may want to see the attachment to understand better.

    Thanks in advance for your help!

    The same question here:

    http://www.mrexcel.com/forum/excel-q...ml#post3374850
    Attached Files Attached Files
    Last edited by fuatt; 01-25-2013 at 07:53 AM.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: VBA store references with arrays

    symply concatenating your formulas with operator & , see attachment
    Attached Files Attached Files
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    09-28-2012
    Location
    brussels
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: VBA store references with arrays

    Thanks patel45 for your answer.

    What I want to do this using VBA, and probably arrays will do what I need.
    Why? Because I want to have not only values but also same font sizes and colors...etc. As far as I know formulas cannot do this(?).

    Whenever I enter the reference number into the cell below reference cell I will have the inputs from the database sheet.

    In the printout sheet of my file you can see what I exactly want to have there.

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: VBA store references with arrays

    I'm afraid your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

  5. #5
    Registered User
    Join Date
    09-28-2012
    Location
    brussels
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: VBA store references with arrays

    I am really sorry, I will pay attention more.
    Hope it is OK now.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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